HandlerMethod that invokes the underlying method with
argument values resolved from the current HTTP request through a list of
HandlerMethodArgumentResolver.
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private static final Object[] | |
| private ParameterNameDiscoverer | |
| private HandlerMethodArgumentResolverComposite |
| Access | Constructor and Description |
|---|---|
| public | |
| public | InvocableHandlerMethod(Object bean, Method method)
Create an instance from a bean instance and a method. |
| public | InvocableHandlerMethod(Object
the object bean bean, String the method name methodName, Class<?>... the method parameter types parameterTypes)Construct a new handler method with the given bean instance, method name and parameters. |
| Modifier and Type | Method and Description |
|---|---|
| protected Object | |
| pack-priv MethodParameter | |
| protected Object[] | getMethodArgumentValues(Message<?> message, Object... providedArgs)
Get the method argument values for the current message, checking the provided argument values and falling back to the configured argument resolvers. |
| public Object | |
| public void | setMessageMethodArgumentResolvers(HandlerMethodArgumentResolverComposite argumentResolvers)
Set |
| public void | setParameterNameDiscoverer(ParameterNameDiscoverer parameterNameDiscoverer)
Set the ParameterNameDiscoverer for resolving parameter names when needed (e.g. default request attribute name). |
| EMPTY_ARGS | back to summary |
|---|---|
| private static final Object[] EMPTY_ARGS | |
| parameterNameDiscoverer | back to summary |
|---|---|
| private ParameterNameDiscoverer parameterNameDiscoverer | |
| resolvers | back to summary |
|---|---|
| private HandlerMethodArgumentResolverComposite resolvers | |
| InvocableHandlerMethod | back to summary |
|---|---|
| public InvocableHandlerMethod(HandlerMethod handlerMethod) Create an instance from a | |
| InvocableHandlerMethod | back to summary |
|---|---|
| public InvocableHandlerMethod(Object bean, Method method) Create an instance from a bean instance and a method. | |
| InvocableHandlerMethod | back to summary |
|---|---|
| public InvocableHandlerMethod(Object bean, String methodName, Class<?>... parameterTypes) throws NoSuchMethodException Construct a new handler method with the given bean instance, method name and parameters.
| |
| doInvoke | back to summary |
|---|---|
| protected Object doInvoke(Object... args) throws Exception Invoke the handler method with the given argument values.
| |
| getAsyncReturnValueType | back to summary |
|---|---|
| pack-priv MethodParameter getAsyncReturnValueType(Object returnValue) | |
| getMethodArgumentValues | back to summary |
|---|---|
| protected Object[] getMethodArgumentValues(Message<?> message, Object... providedArgs) throws Exception Get the method argument values for the current message, checking the provided argument values and falling back to the configured argument resolvers. The resulting array will be passed into
| |
| invoke | back to summary |
|---|---|
| public Object invoke(Message<?> message, Object... providedArgs) throws Exception Invoke the method after resolving its argument values in the context of the given message. Argument values are commonly resolved through
Delegates to
| |
| setMessageMethodArgumentResolvers | back to summary |
|---|---|
| public void setMessageMethodArgumentResolvers(HandlerMethodArgumentResolverComposite argumentResolvers) Set | |
| setParameterNameDiscoverer | back to summary |
|---|---|
| public void setParameterNameDiscoverer(ParameterNameDiscoverer parameterNameDiscoverer) Set the ParameterNameDiscoverer for resolving parameter names when needed (e.g. default request attribute name). Default is a | |
| Modifier and Type | Field and Description |
|---|---|
| private final ResolvableType | |
| private final Object |
| Access | Constructor and Description |
|---|---|
| public | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public InvocableHandlerMethod. | clone()
Overrides org. Creates and returns a copy of this object. |
| public Type | getGenericParameterType()
Overrides org. Return the generic type of the method/constructor parameter. |
| public Class | getParameterType()
Overrides org. Return the type of the method/constructor parameter. |
| returnType | back to summary |
|---|---|
| private final ResolvableType returnType | |
| returnValue | back to summary |
|---|---|
| private final Object returnValue
| |
| AsyncResultMethodParameter | back to summary |
|---|---|
| public AsyncResultMethodParameter(Object returnValue) | |
| AsyncResultMethodParameter | back to summary |
|---|---|
| protected AsyncResultMethodParameter(InvocableHandlerMethod. | |
| clone | back to summary |
|---|---|
| public InvocableHandlerMethod. Overrides org. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| getGenericParameterType | back to summary |
|---|---|
| public Type getGenericParameterType() Overrides org. Doc from org. Return the generic type of the method/constructor parameter. | |
| getParameterType | back to summary |
|---|---|
| public Class Overrides org. Doc from org. Return the type of the method/constructor parameter. | |