public class ProxyingHandlerMethodArgumentResolver extends ModelAttributeMethodProcessor implements BeanFactoryAware, BeanClassLoaderAware
HandlerMethodArgumentResolver
to create Proxy instances for interface based controller method parameters.logger
Constructor and Description |
---|
ProxyingHandlerMethodArgumentResolver(ObjectFactory<ConversionService> conversionService,
boolean annotationNotRequired)
Creates a new
PageableHandlerMethodArgumentResolver using the given ConversionService . |
Modifier and Type | Method and Description |
---|---|
protected void |
bindRequestParameters(WebDataBinder binder,
NativeWebRequest request) |
protected Object |
createAttribute(String attributeName,
MethodParameter parameter,
WebDataBinderFactory binderFactory,
NativeWebRequest request) |
void |
setBeanClassLoader(ClassLoader classLoader) |
void |
setBeanFactory(BeanFactory beanFactory) |
boolean |
supportsParameter(MethodParameter parameter) |
constructAttribute, constructAttribute, handleReturnValue, isBindExceptionRequired, isBindExceptionRequired, resolveArgument, supportsReturnType, validateIfApplicable, validateValueIfApplicable
public ProxyingHandlerMethodArgumentResolver(ObjectFactory<ConversionService> conversionService, boolean annotationNotRequired)
PageableHandlerMethodArgumentResolver
using the given ConversionService
.conversionService
- must not be null.public void setBeanFactory(BeanFactory beanFactory) throws BeansException
setBeanFactory
in interface BeanFactoryAware
BeansException
public void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader
in interface BeanClassLoaderAware
public boolean supportsParameter(MethodParameter parameter)
supportsParameter
in interface HandlerMethodArgumentResolver
supportsParameter
in class ModelAttributeMethodProcessor
protected Object createAttribute(String attributeName, MethodParameter parameter, WebDataBinderFactory binderFactory, NativeWebRequest request) throws Exception
createAttribute
in class ModelAttributeMethodProcessor
Exception
protected void bindRequestParameters(WebDataBinder binder, NativeWebRequest request)
bindRequestParameters
in class ModelAttributeMethodProcessor
Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.