public abstract class AbstractNamedValueMethodArgumentResolver
extends java.lang.Object
implements HandlerMethodArgumentResolver
Abstract base class for resolving method arguments from a named value.
Request parameters, request headers, and path variables are examples of named
values. Each may have a name, a required flag, and a default value.
Subclasses define how to do the following:
Obtain named value information for a method parameter
Resolve names into argument values
Handle missing argument values when argument values are required
Optionally handle a resolved value
A default value string can contain ${...} placeholders and Spring Expression
Language #{...} expressions. For this to work a
ConfigurableBeanFactory must be supplied to the class constructor.
A WebDataBinder is created to apply type conversion to the resolved
argument value if it doesn't match the method parameter type.
beanFactory - a bean factory to use for resolving ${...} placeholder
and #{...} SpEL expressions in default values, or null if default
values are not expected to contain expressions
Resolves a method parameter into an argument value from a given request.
A ModelAndViewContainer provides access to the model for the
request. A WebDataBinderFactory provides a way to create
a WebDataBinder instance when needed for data binding and
type conversion purposes.