Class RemoteInvocationAwareMessageConverterAdapter
java.lang.Object
org.springframework.amqp.support.converter.RemoteInvocationAwareMessageConverterAdapter
- All Implemented Interfaces:
MessageConverter
public class RemoteInvocationAwareMessageConverterAdapter
extends Object
implements MessageConverter
A delegating adapter that unwraps
RemoteInvocationResult
after invoking
the delegate to convert from a message.
Delegates to a SimpleMessageConverter
by default.- Since:
- 2.0
- Author:
- Gary Russell
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionfromMessage
(Message message) Convert from a Message to a Java object.toMessage
(Object object, MessageProperties messageProperties) Convert a Java object to a Message.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.amqp.support.converter.MessageConverter
toMessage
-
Constructor Details
-
RemoteInvocationAwareMessageConverterAdapter
public RemoteInvocationAwareMessageConverterAdapter() -
RemoteInvocationAwareMessageConverterAdapter
-
-
Method Details
-
toMessage
public Message toMessage(Object object, MessageProperties messageProperties) throws MessageConversionException Description copied from interface:MessageConverter
Convert a Java object to a Message.- Specified by:
toMessage
in interfaceMessageConverter
- Parameters:
object
- the object to convertmessageProperties
- The message properties.- Returns:
- the Message
- Throws:
MessageConversionException
- in case of conversion failure
-
fromMessage
Description copied from interface:MessageConverter
Convert from a Message to a Java object.- Specified by:
fromMessage
in interfaceMessageConverter
- Parameters:
message
- the message to convert- Returns:
- the converted Java object
- Throws:
MessageConversionException
- in case of conversion failure
-