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