public interface MethodArgumentResolver
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
resolveArgument(org.springframework.core.MethodParameter parameter)
Resolves a method parameter into an argument value.
|
boolean |
supportsParameter(org.springframework.core.MethodParameter parameter)
Whether the given method parameter is
supported by this resolver.
|
boolean supportsParameter(org.springframework.core.MethodParameter parameter)
parameter
- the method parameter to checktrue
if this resolver supports the supplied parameter;
false
otherwise@Nullable java.lang.Object resolveArgument(org.springframework.core.MethodParameter parameter) throws java.lang.Exception
parameter
- the method parameter to resolve. This parameter must
have previously been passed to supportsParameter(org.springframework.core.MethodParameter)
which must
have returned true
.null
if not resolvablejava.lang.Exception
- in case of errors with the preparation of argument values