public class HandlerMethodArgumentResolverComposite extends Object implements HandlerMethodArgumentResolver
HandlerMethodArgumentResolvers
.
Previously resolved method parameters are cached for faster lookups.Constructor and Description |
---|
HandlerMethodArgumentResolverComposite() |
protected final Log logger
public HandlerMethodArgumentResolverComposite()
public HandlerMethodArgumentResolverComposite addResolver(HandlerMethodArgumentResolver resolver)
HandlerMethodArgumentResolver
.public HandlerMethodArgumentResolverComposite addResolvers(@Nullable HandlerMethodArgumentResolver... resolvers)
HandlerMethodArgumentResolvers
.public HandlerMethodArgumentResolverComposite addResolvers(@Nullable List<? extends HandlerMethodArgumentResolver> resolvers)
HandlerMethodArgumentResolvers
.public List<HandlerMethodArgumentResolver> getResolvers()
public void clear()
public boolean supportsParameter(MethodParameter parameter)
HandlerMethodArgumentResolver
.supportsParameter
in interface HandlerMethodArgumentResolver
parameter
- the method parameter to checktrue
if this resolver supports the supplied parameter;
false
otherwisepublic reactor.core.publisher.Mono<Object> resolveArgument(MethodParameter parameter, Message<?> message)
HandlerMethodArgumentResolvers
and
invoke the one that supports it.resolveArgument
in interface HandlerMethodArgumentResolver
parameter
- the method parameter to resolve.
This parameter must have previously been passed to
HandlerMethodArgumentResolver.supportsParameter(org.springframework.core.MethodParameter)
which must have returned true
.message
- the currently processed messageMono
for the argument value, possibly emptyIllegalStateException
- if no suitable
HandlerMethodArgumentResolver
is found.@Nullable public HandlerMethodArgumentResolver getArgumentResolver(MethodParameter parameter)
HandlerMethodArgumentResolver
that supports
the given method parameter.