Package io.jmix.core.impl.method
Class MethodArgumentResolverComposite
java.lang.Object
io.jmix.core.impl.method.CachedArgumentResolverComposite
io.jmix.core.impl.method.MethodArgumentResolverComposite
- All Implemented Interfaces:
ArgumentResolverComposite
,MethodArgumentResolver
Resolves method parameters by delegating to a list of registered
MethodArgumentResolvers
.
Previously resolved method parameters are cached for faster lookups.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddResolver
(MethodArgumentResolver resolver) Add the givenMethodArgumentResolver
.addResolvers
(MethodArgumentResolver... resolvers) Add the givenMethodArgumentResolvers
.addResolvers
(List<? extends MethodArgumentResolver> resolvers) Add the givenMethodArgumentResolvers
.void
clear()
Clear the list of configured resolvers.Return a read-only list with the contained resolvers, or an empty list.Methods inherited from class io.jmix.core.impl.method.CachedArgumentResolverComposite
resolveArgument, supportsParameter
-
Constructor Details
-
MethodArgumentResolverComposite
public MethodArgumentResolverComposite()
-
-
Method Details
-
addResolver
Add the givenMethodArgumentResolver
. -
addResolvers
Add the givenMethodArgumentResolvers
. -
addResolvers
public MethodArgumentResolverComposite addResolvers(@Nullable List<? extends MethodArgumentResolver> resolvers) Add the givenMethodArgumentResolvers
. -
getResolvers
Return a read-only list with the contained resolvers, or an empty list.- Specified by:
getResolvers
in interfaceArgumentResolverComposite
- Specified by:
getResolvers
in classCachedArgumentResolverComposite
-
clear
public void clear()Clear the list of configured resolvers.- Since:
- 4.3
-