Package org.springframework.data.web
Class ProxyingHandlerMethodArgumentResolver
java.lang.Object
org.springframework.web.method.annotation.ModelAttributeMethodProcessor
org.springframework.data.web.ProxyingHandlerMethodArgumentResolver
- All Implemented Interfaces:
- Aware,- BeanClassLoaderAware,- BeanFactoryAware,- HandlerMethodArgumentResolver,- HandlerMethodReturnValueHandler
public class ProxyingHandlerMethodArgumentResolver
extends ModelAttributeMethodProcessor
implements BeanFactoryAware, BeanClassLoaderAware
HandlerMethodArgumentResolver to create Proxy instances for interface based controller method parameters.- Since:
- 1.10
- Author:
- Oliver Gierke, Chris Bono
- 
Field SummaryFields inherited from class org.springframework.web.method.annotation.ModelAttributeMethodProcessorlogger
- 
Constructor SummaryConstructorsConstructorDescriptionProxyingHandlerMethodArgumentResolver(ObjectFactory<ConversionService> conversionService, boolean annotationNotRequired) Creates a newPageableHandlerMethodArgumentResolverusing the givenConversionService.
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidbindRequestParameters(WebDataBinder binder, NativeWebRequest request) protected ObjectcreateAttribute(String attributeName, MethodParameter parameter, WebDataBinderFactory binderFactory, NativeWebRequest request) voidsetBeanClassLoader(ClassLoader classLoader) voidsetBeanFactory(BeanFactory beanFactory) booleansupportsParameter(MethodParameter parameter) Methods inherited from class org.springframework.web.method.annotation.ModelAttributeMethodProcessorconstructAttribute, handleReturnValue, isBindExceptionRequired, isBindExceptionRequired, resolveArgument, supportsReturnType, validateIfApplicable
- 
Constructor Details- 
ProxyingHandlerMethodArgumentResolverpublic ProxyingHandlerMethodArgumentResolver(ObjectFactory<ConversionService> conversionService, boolean annotationNotRequired) Creates a newPageableHandlerMethodArgumentResolverusing the givenConversionService.- Parameters:
- conversionService- must not be null.
 
 
- 
- 
Method Details- 
setBeanFactory- Specified by:
- setBeanFactoryin interface- BeanFactoryAware
- Throws:
- BeansException
 
- 
setBeanClassLoader- Specified by:
- setBeanClassLoaderin interface- BeanClassLoaderAware
 
- 
supportsParameter- Specified by:
- supportsParameterin interface- HandlerMethodArgumentResolver
- Overrides:
- supportsParameterin class- ModelAttributeMethodProcessor
 
- 
createAttributeprotected Object createAttribute(String attributeName, MethodParameter parameter, WebDataBinderFactory binderFactory, NativeWebRequest request) throws Exception - Overrides:
- createAttributein class- ModelAttributeMethodProcessor
- Throws:
- Exception
 
- 
bindRequestParameters- Overrides:
- bindRequestParametersin class- ModelAttributeMethodProcessor
 
 
-