org.springframework.integration.handler
Class MethodInvokingTarget

java.lang.Object
  extended by org.springframework.integration.handler.AbstractMessageHandlerAdapter
      extended by org.springframework.integration.handler.MethodInvokingTarget
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, MessageHandler, Target

public class MethodInvokingTarget
extends AbstractMessageHandlerAdapter
implements Target

A messaging target that invokes the specified method on the provided object.

Author:
Mark Fisher

Field Summary
 
Fields inherited from class org.springframework.integration.handler.AbstractMessageHandlerAdapter
invoker, logger, OUTPUT_CHANNEL_NAME_KEY
 
Constructor Summary
MethodInvokingTarget()
           
 
Method Summary
protected  Message<?> handleReturnValue(java.lang.Object returnValue, Message<?> originalMessage)
          Subclasses must implement this method to handle the return value.
 boolean send(Message<?> message)
           
 
Methods inherited from class org.springframework.integration.handler.AbstractMessageHandlerAdapter
afterPropertiesSet, createReplyMessage, getMethod, getObject, handle, initialize, setMessageCreator, setMessageMapper, setMethod, setMethodExpectsMessage, setMethodName, setObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodInvokingTarget

public MethodInvokingTarget()
Method Detail

send

public boolean send(Message<?> message)
Specified by:
send in interface Target

handleReturnValue

protected Message<?> handleReturnValue(java.lang.Object returnValue,
                                       Message<?> originalMessage)
Description copied from class: AbstractMessageHandlerAdapter
Subclasses must implement this method to handle the return value.

Specified by:
handleReturnValue in class AbstractMessageHandlerAdapter