org.springframework.integration.message
Interface MessageMapper<M,O>

All Known Implementing Classes:
AbstractFileMapper, AbstractMessageMapper, ByteArrayFileMapper, MessagingEventMapper, SimplePayloadMessageMapper, TextFileMapper

public interface MessageMapper<M,O>

Strategy interface for mapping between messages and objects.

Author:
Mark Fisher

Method Summary
 O fromMessage(Message<M> message)
          Map from the given Message to an object.
 Message<M> toMessage(O source)
          Map to a Message from the given object.
 

Method Detail

toMessage

Message<M> toMessage(O source)
Map to a Message from the given object.


fromMessage

O fromMessage(Message<M> message)
Map from the given Message to an object.