public class ProxyingHandlerMethodArgumentResolver
extends org.springframework.web.method.annotation.ModelAttributeMethodProcessor
implements org.springframework.beans.factory.BeanFactoryAware, org.springframework.context.ResourceLoaderAware, org.springframework.beans.factory.BeanClassLoaderAware
HandlerMethodArgumentResolver
to create Proxy instances for interface based controller method parameters.Constructor and Description |
---|
ProxyingHandlerMethodArgumentResolver(org.springframework.core.convert.ConversionService conversionService)
Creates a new
PageableHandlerMethodArgumentResolver using the given ConversionService . |
Modifier and Type | Method and Description |
---|---|
protected void |
bindRequestParameters(org.springframework.web.bind.WebDataBinder binder,
org.springframework.web.context.request.NativeWebRequest request) |
protected Object |
createAttribute(String attributeName,
org.springframework.core.MethodParameter parameter,
org.springframework.web.bind.support.WebDataBinderFactory binderFactory,
org.springframework.web.context.request.NativeWebRequest request) |
void |
setBeanClassLoader(ClassLoader classLoader) |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
Deprecated.
rather set the
ClassLoader via setBeanClassLoader(ClassLoader) . |
boolean |
supportsParameter(org.springframework.core.MethodParameter parameter) |
public ProxyingHandlerMethodArgumentResolver(org.springframework.core.convert.ConversionService conversionService)
PageableHandlerMethodArgumentResolver
using the given ConversionService
.conversionService
- must not be null.public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
org.springframework.beans.BeansException
@Deprecated public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
ClassLoader
via setBeanClassLoader(ClassLoader)
.setResourceLoader
in interface org.springframework.context.ResourceLoaderAware
ResourceLoaderAware.setResourceLoader(org.springframework.core.io.ResourceLoader)
public void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader
in interface org.springframework.beans.factory.BeanClassLoaderAware
public boolean supportsParameter(org.springframework.core.MethodParameter parameter)
supportsParameter
in interface org.springframework.web.method.support.HandlerMethodArgumentResolver
supportsParameter
in class org.springframework.web.method.annotation.ModelAttributeMethodProcessor
protected Object createAttribute(String attributeName, org.springframework.core.MethodParameter parameter, org.springframework.web.bind.support.WebDataBinderFactory binderFactory, org.springframework.web.context.request.NativeWebRequest request) throws Exception
createAttribute
in class org.springframework.web.method.annotation.ModelAttributeMethodProcessor
Exception
protected void bindRequestParameters(org.springframework.web.bind.WebDataBinder binder, org.springframework.web.context.request.NativeWebRequest request)
bindRequestParameters
in class org.springframework.web.method.annotation.ModelAttributeMethodProcessor
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.