public class ProxyingHandlerMethodArgumentResolver extends ModelAttributeMethodProcessor implements BeanFactoryAware, BeanClassLoaderAware
HandlerMethodArgumentResolver
to create Proxy instances for interface based controller method parameters.logger
Constructor and Description |
---|
ProxyingHandlerMethodArgumentResolver(ConversionService conversionService)
Deprecated.
|
ProxyingHandlerMethodArgumentResolver(ObjectFactory<ConversionService> conversionService,
boolean annotationNotRequired)
Creates a new
PageableHandlerMethodArgumentResolver using the given ConversionService . |
Modifier and Type | Method and Description |
---|---|
protected 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) |
constructAttribute, constructAttribute, handleReturnValue, isBindExceptionRequired, isBindExceptionRequired, resolveArgument, supportsReturnType, validateIfApplicable, validateValueIfApplicable
@Deprecated public ProxyingHandlerMethodArgumentResolver(ConversionService conversionService)
ProxyingHandlerMethodArgumentResolver(ObjectFactory, boolean)
instead.PageableHandlerMethodArgumentResolver
using the given ConversionService
and the
ModelAttribute
annotation not required.conversionService
- must not be null.public ProxyingHandlerMethodArgumentResolver(ObjectFactory<ConversionService> conversionService, boolean annotationNotRequired)
PageableHandlerMethodArgumentResolver
using the given ConversionService
.conversionService
- must not be null.public void setBeanFactory(BeanFactory beanFactory) throws BeansException
setBeanFactory
in interface BeanFactoryAware
BeansException
public void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader
in interface BeanClassLoaderAware
public boolean supportsParameter(MethodParameter parameter)
supportsParameter
in interface HandlerMethodArgumentResolver
supportsParameter
in class ModelAttributeMethodProcessor
protected Object createAttribute(String attributeName, MethodParameter parameter, WebDataBinderFactory binderFactory, NativeWebRequest request) throws Exception
createAttribute
in class ModelAttributeMethodProcessor
Exception
protected void bindRequestParameters(WebDataBinder binder, NativeWebRequest request)
bindRequestParameters
in class ModelAttributeMethodProcessor
Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.