org.springframework.integration.message
Class SimplePayloadMessageMapper<T>

java.lang.Object
  extended by org.springframework.integration.message.AbstractMessageMapper<T,T>
      extended by org.springframework.integration.message.SimplePayloadMessageMapper<T>
All Implemented Interfaces:
MessageMapper<T,T>

public class SimplePayloadMessageMapper<T>
extends AbstractMessageMapper<T,T>

A MessageMapper implementation that simply wraps and unwraps a payload object in a DocumentMessage.

Author:
Mark Fisher

Constructor Summary
SimplePayloadMessageMapper()
           
 
Method Summary
 T fromMessage(Message<T> message)
          Return the payload of the given Message.
 Message<T> toMessage(T source)
          Return a DocumentMessage with the given object as its payload.
 
Methods inherited from class org.springframework.integration.message.AbstractMessageMapper
getUidGenerator, setUidGenerator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplePayloadMessageMapper

public SimplePayloadMessageMapper()
Method Detail

fromMessage

public T fromMessage(Message<T> message)
Return the payload of the given Message.


toMessage

public Message<T> toMessage(T source)
Return a DocumentMessage with the given object as its payload.