@Value.
An @Value does not have a name but gets resolved from the default
value string, which may contain ${...} placeholder or Spring Expression
Language #{...} expressions.
A WebDataBinder may be invoked to apply type conversion to
resolved argument value.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Access | Constructor and Description |
|---|---|
| public | ExpressionValueMethodArgumentResolver(ConfigurableBeanFactory
a bean factory to use for resolving ${...}
placeholder and #{...} SpEL expressions in default values;
or beanFactory)null if default values are not expected to contain expressionsCreate a new |
| Modifier and Type | Method and Description |
|---|---|
| protected AbstractNamedValueMethodArgumentResolver. | createNamedValueInfo(MethodParameter
the method parameter parameter)Implements abstract org. Create the |
| protected void | handleMissingValue(String
the name for the value name, MethodParameter the method parameter parameter)
Invoked when a named value is required, but |
| protected Object | resolveName(String
the name of the value being resolved name, MethodParameter the method parameter to resolve to an argument value
(pre-nested in case of a parameter, NativeWebRequest java. declaration)the current request webRequest)Implements abstract org. Resolve the given parameter type and value name into an argument value. |
| public boolean | supportsParameter(MethodParameter
the method parameter to check parameter)Implements org. Whether the given method parameter is supported by this resolver. |
| ExpressionValueMethodArgumentResolver | back to summary |
|---|---|
| public ExpressionValueMethodArgumentResolver(ConfigurableBeanFactory beanFactory) Create a new
| |
| createNamedValueInfo | back to summary |
|---|---|
| protected AbstractNamedValueMethodArgumentResolver. Implements abstract org. Create the
| |
| handleMissingValue | back to summary |
|---|---|
| protected void handleMissingValue(String name, MethodParameter parameter) throws ServletException Invoked when a named value is required, but
| |
| resolveName | back to summary |
|---|---|
| protected Object resolveName(String name, MethodParameter parameter, NativeWebRequest webRequest) throws Exception Implements abstract org. Doc from org. Resolve the given parameter type and value name into an argument value.
| |
| supportsParameter | back to summary |
|---|---|
| public boolean supportsParameter(MethodParameter parameter) Implements org. Doc from org. Whether the given method parameter is supported by this resolver.
| |
| Access | Constructor and Description |
|---|---|
| private |
| ExpressionValueNamedValueInfo | back to summary |
|---|---|
| private ExpressionValueNamedValueInfo(Value annotation) | |