org.springframework.integration.handler
Class DefaultMessageHandlerAdapter

java.lang.Object
  extended by org.springframework.integration.util.AbstractMethodInvokingAdapter
      extended by org.springframework.integration.handler.AbstractMessageHandlerAdapter
          extended by org.springframework.integration.handler.DefaultMessageHandlerAdapter
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, org.springframework.core.Ordered, ChannelRegistryAware, MessageHandler, MethodInvoker

public class DefaultMessageHandlerAdapter
extends AbstractMessageHandlerAdapter

An implementation of MessageHandler that invokes the specified method and target object. It will use the provided implementation of the MessageCreator strategy interface to convert the method invocation's return value to a reply Message.

Author:
Mark Fisher

Field Summary
 
Fields inherited from class org.springframework.integration.handler.AbstractMessageHandlerAdapter
OUTPUT_CHANNEL_NAME_KEY
 
Fields inherited from class org.springframework.integration.util.AbstractMethodInvokingAdapter
logger
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
DefaultMessageHandlerAdapter()
           
 
Method Summary
protected  Message<?> handleReturnValue(java.lang.Object returnValue, Message<?> originalMessage)
          Subclasses must implement this method to handle the return value.
 
Methods inherited from class org.springframework.integration.handler.AbstractMessageHandlerAdapter
createReplyMessage, getChannelRegistry, handle, setChannelRegistry, setMessageCreator, setMessageMapper, setMethodExpectsMessage
 
Methods inherited from class org.springframework.integration.util.AbstractMethodInvokingAdapter
afterPropertiesSet, getMethod, getMethodName, getObject, getOrder, initialize, invokeMethod, isInitialized, setMethod, setMethodName, setObject, setOrder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMessageHandlerAdapter

public DefaultMessageHandlerAdapter()
Method Detail

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