public class RemoteInvocationAwareMessageConverterAdapter extends Object implements MessageConverter, BeanClassLoaderAware
RemoteInvocationResult
after invoking
the delegate to convert from a message.
Delegates to a SimpleMessageConverter
by default.Constructor and Description |
---|
RemoteInvocationAwareMessageConverterAdapter() |
RemoteInvocationAwareMessageConverterAdapter(MessageConverter delegate) |
Modifier and Type | Method and Description |
---|---|
Object |
fromMessage(Message message)
Convert from a Message to a Java object.
|
void |
setBeanClassLoader(ClassLoader classLoader) |
Message |
toMessage(Object object,
MessageProperties messageProperties)
Convert a Java object to a Message.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toMessage
public RemoteInvocationAwareMessageConverterAdapter()
public RemoteInvocationAwareMessageConverterAdapter(MessageConverter delegate)
public void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader
in interface BeanClassLoaderAware
public Message toMessage(Object object, MessageProperties messageProperties) throws MessageConversionException
MessageConverter
toMessage
in interface MessageConverter
object
- the object to convertmessageProperties
- The message properties.MessageConversionException
- in case of conversion failurepublic Object fromMessage(Message message) throws MessageConversionException
MessageConverter
fromMessage
in interface MessageConverter
message
- the message to convertMessageConversionException
- in case of conversion failure