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, Mark Paluch
-
Field Summary
Fields inherited from class org.springframework.web.method.annotation.ModelAttributeMethodProcessor
logger -
Constructor Summary
ConstructorsConstructorDescriptionProxyingHandlerMethodArgumentResolver(ObjectFactory<ConversionService> conversionService, boolean annotationNotRequired) Creates a newProxyingHandlerMethodArgumentResolverusing the givenConversionService. -
Method Summary
Modifier 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.ModelAttributeMethodProcessor
constructAttribute, handleReturnValue, isBindExceptionRequired, isBindExceptionRequired, resolveArgument, supportsReturnType, validateIfApplicable
-
Constructor Details
-
ProxyingHandlerMethodArgumentResolver
public ProxyingHandlerMethodArgumentResolver(ObjectFactory<ConversionService> conversionService, boolean annotationNotRequired) Creates a newProxyingHandlerMethodArgumentResolverusing the givenConversionService.- Parameters:
conversionService- must not be null.
-
-
Method Details
-
setBeanFactory
- Specified by:
setBeanFactoryin interfaceBeanFactoryAware- Throws:
BeansException
-
setBeanClassLoader
- Specified by:
setBeanClassLoaderin interfaceBeanClassLoaderAware
-
supportsParameter
- Specified by:
supportsParameterin interfaceHandlerMethodArgumentResolver- Overrides:
supportsParameterin classModelAttributeMethodProcessor
-
createAttribute
protected Object createAttribute(String attributeName, MethodParameter parameter, WebDataBinderFactory binderFactory, NativeWebRequest request) throws Exception - Overrides:
createAttributein classModelAttributeMethodProcessor- Throws:
Exception
-
bindRequestParameters
- Overrides:
bindRequestParametersin classModelAttributeMethodProcessor
-