org.springframework.integration.message
Class MessageMappingMethodInvoker

java.lang.Object
  extended by org.springframework.integration.message.MessageMappingMethodInvoker
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, MethodInvoker
Direct Known Subclasses:
MethodInvokingMessageHandler

public class MessageMappingMethodInvoker
extends java.lang.Object
implements MethodInvoker, org.springframework.beans.factory.InitializingBean

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

Field Summary
protected static org.apache.commons.logging.Log logger
           
 
Constructor Summary
MessageMappingMethodInvoker(java.lang.Object object, java.lang.reflect.Method method)
           
MessageMappingMethodInvoker(java.lang.Object object, java.lang.String methodName)
           
 
Method Summary
 void afterPropertiesSet()
           
 java.lang.Object invokeMethod(java.lang.Object... args)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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.String methodName)
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean

invokeMethod

public java.lang.Object invokeMethod(java.lang.Object... args)
Specified by:
invokeMethod in interface MethodInvoker

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object