public class HandlerMethodArgumentResolverComposite extends Object implements HandlerMethodArgumentResolver
HandlerMethodArgumentResolvers
.
Previously resolved method parameters are cached for faster lookups.Constructor and Description |
---|
HandlerMethodArgumentResolverComposite() |
@Deprecated protected final Log logger
public HandlerMethodArgumentResolverComposite()
public HandlerMethodArgumentResolverComposite addResolver(HandlerMethodArgumentResolver resolver)
HandlerMethodArgumentResolver
.public HandlerMethodArgumentResolverComposite addResolvers(HandlerMethodArgumentResolver... resolvers)
HandlerMethodArgumentResolvers
.public HandlerMethodArgumentResolverComposite addResolvers(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 Object resolveArgument(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) throws Exception
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
.mavContainer
- the ModelAndViewContainer for the current requestwebRequest
- the current requestbinderFactory
- a factory for creating WebDataBinder
instancesnull
IllegalArgumentException
- if no suitable argument resolver is foundException
- in case of errors with the preparation of argument values