Class ProxyingHandlerMethodArgumentResolver

java.lang.Object
org.springframework.web.method.annotation.ModelAttributeMethodProcessor
org.springframework.data.web.ProxyingHandlerMethodArgumentResolver
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.web.method.support.HandlerMethodArgumentResolver, org.springframework.web.method.support.HandlerMethodReturnValueHandler

public class ProxyingHandlerMethodArgumentResolver extends org.springframework.web.method.annotation.ModelAttributeMethodProcessor implements org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanClassLoaderAware
HandlerMethodArgumentResolver to create Proxy instances for interface based controller method parameters.
Since:
1.10
Author:
Oliver Gierke
  • Field Summary

    Fields inherited from class org.springframework.web.method.annotation.ModelAttributeMethodProcessor

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
    ProxyingHandlerMethodArgumentResolver(org.springframework.beans.factory.ObjectFactory<org.springframework.core.convert.ConversionService> conversionService, boolean annotationNotRequired)
    Creates a new PageableHandlerMethodArgumentResolver using the given ConversionService.
  • Method Summary

    Modifier and Type
    Method
    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
     
    void
    setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
     
    boolean
    supportsParameter(org.springframework.core.MethodParameter parameter)
     

    Methods inherited from class org.springframework.web.method.annotation.ModelAttributeMethodProcessor

    constructAttribute, handleReturnValue, isBindExceptionRequired, isBindExceptionRequired, resolveArgument, resolveConstructorArgument, supportsReturnType, validateIfApplicable, validateValueIfApplicable

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ProxyingHandlerMethodArgumentResolver

      public ProxyingHandlerMethodArgumentResolver(org.springframework.beans.factory.ObjectFactory<org.springframework.core.convert.ConversionService> conversionService, boolean annotationNotRequired)
      Creates a new PageableHandlerMethodArgumentResolver using the given ConversionService.
      Parameters:
      conversionService - must not be null.
  • Method Details

    • setBeanFactory

      public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
      Specified by:
      setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
      Throws:
      org.springframework.beans.BeansException
    • setBeanClassLoader

      public void setBeanClassLoader(ClassLoader classLoader)
      Specified by:
      setBeanClassLoader in interface org.springframework.beans.factory.BeanClassLoaderAware
    • supportsParameter

      public boolean supportsParameter(org.springframework.core.MethodParameter parameter)
      Specified by:
      supportsParameter in interface org.springframework.web.method.support.HandlerMethodArgumentResolver
      Overrides:
      supportsParameter in class org.springframework.web.method.annotation.ModelAttributeMethodProcessor
    • createAttribute

      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
      Overrides:
      createAttribute in class org.springframework.web.method.annotation.ModelAttributeMethodProcessor
      Throws:
      Exception
    • bindRequestParameters

      protected void bindRequestParameters(org.springframework.web.bind.WebDataBinder binder, org.springframework.web.context.request.NativeWebRequest request)
      Overrides:
      bindRequestParameters in class org.springframework.web.method.annotation.ModelAttributeMethodProcessor