org.springframework.web.method.annotation

Class AbstractWebArgumentResolverAdapter

  • java.lang.Object
    • org.springframework.web.method.annotation.AbstractWebArgumentResolverAdapter
  • All Implemented Interfaces:
    HandlerMethodArgumentResolver
    Direct Known Subclasses:
    ServletWebArgumentResolverAdapter


    public abstract class AbstractWebArgumentResolverAdapter
    extends java.lang.Object
    implements HandlerMethodArgumentResolver
    An abstract base class adapting a WebArgumentResolver to the HandlerMethodArgumentResolver contract.

    Note: This class is provided for backwards compatibility. However it is recommended to re-write a WebArgumentResolver as HandlerMethodArgumentResolver. Since supportsParameter(org.springframework.core.MethodParameter) can only be implemented by actually resolving the value and then checking the result is not WebArgumentResolver#UNRESOLVED any exceptions raised must be absorbed and ignored since it's not clear whether the adapter doesn't support the parameter or whether it failed for an internal reason. The HandlerMethodArgumentResolver contract also provides access to model attributes and to WebDataBinderFactory (for type conversion).

    Since:
    3.1
    Author:
    Arjen Poutsma, Rossen Stoyanchev