org.springframework.integration.handler
Class MessageMappingMethodInvoker

java.lang.Object
  extended by 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
           
 
Constructor Summary
MessageMappingMethodInvoker(java.lang.Object object, java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
           
MessageMappingMethodInvoker(java.lang.Object object, java.lang.reflect.Method method)
           
MessageMappingMethodInvoker(java.lang.Object object, java.lang.String methodName)
           
MessageMappingMethodInvoker(java.lang.Object object, java.lang.String methodName, boolean requiresReturnValue)
           
 
Method Summary
 java.lang.Object invokeMethod(Message<?> message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.apache.commons.logging.Log logger
Constructor Detail

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)
Method Detail

invokeMethod

public java.lang.Object invokeMethod(Message<?> message)