org.springframework.integration.handler
Class MessageMappingMethodInvoker
java.lang.Object
org.springframework.integration.handler.MessageMappingMethodInvoker
- Direct Known Subclasses:
- MethodInvokingMessageHandler
public class MessageMappingMethodInvoker
- extends java.lang.Object
A base or helper class for any Messaging component that acts as an adapter
by invoking a "plain" (not Message-aware) method on a given target object.
The target Object is mandatory, and either a Method
reference, a
'methodName', or an Annotation type must be provided.
- Author:
- Mark Fisher, Marius Bogoevici
- See Also:
MethodParameterMessageMapper
Field Summary |
protected static org.apache.commons.logging.Log |
logger
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static final org.apache.commons.logging.Log logger
MessageMappingMethodInvoker
public MessageMappingMethodInvoker(java.lang.Object object,
java.lang.reflect.Method method)
MessageMappingMethodInvoker
public MessageMappingMethodInvoker(java.lang.Object object,
java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
MessageMappingMethodInvoker
public MessageMappingMethodInvoker(java.lang.Object object,
java.lang.String methodName)
MessageMappingMethodInvoker
public MessageMappingMethodInvoker(java.lang.Object object,
java.lang.String methodName,
boolean requiresReturnValue)
invokeMethod
public java.lang.Object invokeMethod(Message<?> message)