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
ConstructorDescriptionProxyingHandlerMethodArgumentResolver
(org.springframework.beans.factory.ObjectFactory<org.springframework.core.convert.ConversionService> conversionService, boolean annotationNotRequired) Creates a newPageableHandlerMethodArgumentResolver
using the givenConversionService
. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
bindRequestParameters
(org.springframework.web.bind.WebDataBinder binder, org.springframework.web.context.request.NativeWebRequest request) protected Object
createAttribute
(String attributeName, org.springframework.core.MethodParameter parameter, org.springframework.web.bind.support.WebDataBinderFactory binderFactory, org.springframework.web.context.request.NativeWebRequest request) void
setBeanClassLoader
(ClassLoader classLoader) void
setBeanFactory
(org.springframework.beans.factory.BeanFactory beanFactory) boolean
supportsParameter
(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 newPageableHandlerMethodArgumentResolver
using 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:
setBeanFactory
in interfaceorg.springframework.beans.factory.BeanFactoryAware
- Throws:
org.springframework.beans.BeansException
-
setBeanClassLoader
- Specified by:
setBeanClassLoader
in interfaceorg.springframework.beans.factory.BeanClassLoaderAware
-
supportsParameter
public boolean supportsParameter(org.springframework.core.MethodParameter parameter) - Specified by:
supportsParameter
in interfaceorg.springframework.web.method.support.HandlerMethodArgumentResolver
- Overrides:
supportsParameter
in 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:
createAttribute
in 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:
bindRequestParameters
in classorg.springframework.web.method.annotation.ModelAttributeMethodProcessor
-