public class ProxyingHandlerMethodArgumentResolver extends ModelAttributeMethodProcessor implements BeanFactoryAware, ResourceLoaderAware, 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) |
void |
setResourceLoader(ResourceLoader resourceLoader)
Deprecated.
rather set the
ClassLoader via setBeanClassLoader(ClassLoader) . |
boolean |
supportsParameter(MethodParameter parameter) |
handleReturnValue, isBindExceptionRequired, resolveArgument, supportsReturnType, validateIfApplicable
@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
@Deprecated public void setResourceLoader(ResourceLoader resourceLoader)
ClassLoader
via setBeanClassLoader(ClassLoader)
.setResourceLoader
in interface ResourceLoaderAware
ResourceLoaderAware.setResourceLoader(org.springframework.core.io.ResourceLoader)
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–2019 Pivotal Software, Inc.. All rights reserved.