public class HandlerAdapter extends Object
InvocableHandlerMethod or
DelegatingInvocableHandler. All methods delegate to the
underlying handler.| Constructor and Description |
|---|
HandlerAdapter(DelegatingInvocableHandler delegatingHandler) |
HandlerAdapter(InvocableHandlerMethod invokerHandlerMethod) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getBean() |
InvocationResult |
getInvocationResultFor(Object result,
Object inboundPayload) |
String |
getMethodAsString(Object payload) |
Method |
getMethodFor(Object payload) |
Type |
getReturnTypeFor(Object payload)
Return the return type for the method that will be chosen for this payload.
|
InvocationResult |
invoke(Message<?> message,
Object... providedArgs) |
public HandlerAdapter(InvocableHandlerMethod invokerHandlerMethod)
public HandlerAdapter(DelegatingInvocableHandler delegatingHandler)
public InvocationResult invoke(Message<?> message, Object... providedArgs) throws Exception
Exceptionpublic Type getReturnTypeFor(Object payload)
payload - the payload.public Object getBean()
@Nullable public InvocationResult getInvocationResultFor(Object result, Object inboundPayload)