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)
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
public ProxyingHandlerMethodArgumentResolver(ConversionService conversionService)
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-2016–2017 Pivotal Software, Inc.. All rights reserved.