public interface MessageConverter
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
fromMessage(Message message)
Convert from a Message to a Java object.
|
Message |
toMessage(java.lang.Object object,
MessageProperties messageProperties)
Convert a Java object to a Message.
|
Message toMessage(java.lang.Object object, MessageProperties messageProperties) throws MessageConversionException
object
- the object to convertmessageProperties
- The message properties.MessageConversionException
- in case of conversion failurejava.lang.Object fromMessage(Message message) throws MessageConversionException
message
- the message to convertMessageConversionException
- in case of conversion failure