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

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

public class DefaultMessageMapper<T>
extends java.lang.Object
implements MessageMapper<T,T>

A simple implementation of MessageMapper that returns the Message's payload.

Author:
Mark Fisher

Constructor Summary
DefaultMessageMapper()
           
 
Method Summary
 T mapMessage(Message<T> message)
          Map from the given Message to an Object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMessageMapper

public DefaultMessageMapper()
Method Detail

mapMessage

public T mapMessage(Message<T> message)
Description copied from interface: MessageMapper
Map from the given Message to an Object.

Specified by:
mapMessage in interface MessageMapper<T,T>