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