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.
By default data binding of for collection types is limited to a size of #MapDataBinder.DEFAULT_COLLECTION_LIMIT.
This value can be overridden by setting the property spring.data.web.projection.collection-size-limit.
- Since:
- 1.10
- Author:
- Oliver Gierke, Chris Bono, Christoph Strobl
-
Field Summary
FieldsFields inherited from class org.springframework.web.method.annotation.ModelAttributeMethodProcessor
logger -
Constructor Summary
ConstructorsConstructorDescriptionProxyingHandlerMethodArgumentResolver(ObjectFactory<ConversionService> conversionService, boolean annotationNotRequired) Creates a newPageableHandlerMethodArgumentResolverusing 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
-
Field Details
-
COLLECTION_SIZE_LIMIT_PARAM
- See Also:
-
-
Constructor Details
-
ProxyingHandlerMethodArgumentResolver
public ProxyingHandlerMethodArgumentResolver(ObjectFactory<ConversionService> conversionService, boolean annotationNotRequired) Creates a newPageableHandlerMethodArgumentResolverusing 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
-