Class RemoteInvocationAwareMessageConverterAdapter
- java.lang.Object
-
- org.springframework.amqp.support.converter.RemoteInvocationAwareMessageConverterAdapter
-
- All Implemented Interfaces:
MessageConverter,Aware,BeanClassLoaderAware
public class RemoteInvocationAwareMessageConverterAdapter extends Object implements MessageConverter, BeanClassLoaderAware
A delegating adapter that unwrapsRemoteInvocationResultafter invoking the delegate to convert from a message. Delegates to aSimpleMessageConverterby default.- Since:
- 2.0
- Author:
- Gary Russell
-
-
Constructor Summary
Constructors Constructor Description RemoteInvocationAwareMessageConverterAdapter()RemoteInvocationAwareMessageConverterAdapter(MessageConverter delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectfromMessage(Message message)Convert from a Message to a Java object.voidsetBeanClassLoader(ClassLoader classLoader)MessagetoMessage(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 Detail
-
RemoteInvocationAwareMessageConverterAdapter
public RemoteInvocationAwareMessageConverterAdapter()
-
RemoteInvocationAwareMessageConverterAdapter
public RemoteInvocationAwareMessageConverterAdapter(MessageConverter delegate)
-
-
Method Detail
-
setBeanClassLoader
public void setBeanClassLoader(ClassLoader classLoader)
- Specified by:
setBeanClassLoaderin interfaceBeanClassLoaderAware
-
toMessage
public Message toMessage(Object object, MessageProperties messageProperties) throws MessageConversionException
Description copied from interface:MessageConverterConvert a Java object to a Message.- Specified by:
toMessagein interfaceMessageConverter- Parameters:
object- the object to convertmessageProperties- The message properties.- Returns:
- the Message
- Throws:
MessageConversionException- in case of conversion failure
-
fromMessage
public Object fromMessage(Message message) throws MessageConversionException
Description copied from interface:MessageConverterConvert from a Message to a Java object.- Specified by:
fromMessagein interfaceMessageConverter- Parameters:
message- the message to convert- Returns:
- the converted Java object
- Throws:
MessageConversionException- in case of conversion failure
-
-