public class SimpleMessageConverter extends Object implements MessageConverter, BeanFactoryAware
Constructor and Description |
---|
SimpleMessageConverter() |
SimpleMessageConverter(InboundMessageMapper<?> inboundMessageMapper) |
SimpleMessageConverter(InboundMessageMapper<?> inboundMessageMapper,
OutboundMessageMapper<?> outboundMessageMapper) |
SimpleMessageConverter(OutboundMessageMapper<?> outboundMessageMapper) |
Modifier and Type | Method and Description |
---|---|
Object |
fromMessage(Message<?> message,
Class<?> targetClass) |
void |
setBeanFactory(BeanFactory beanFactory) |
void |
setInboundMessageMapper(InboundMessageMapper<?> inboundMessageMapper) |
void |
setOutboundMessageMapper(OutboundMessageMapper<?> outboundMessageMapper) |
Message<?> |
toMessage(Object object,
MessageHeaders headers) |
public SimpleMessageConverter()
public SimpleMessageConverter(InboundMessageMapper<?> inboundMessageMapper)
public SimpleMessageConverter(OutboundMessageMapper<?> outboundMessageMapper)
public SimpleMessageConverter(InboundMessageMapper<?> inboundMessageMapper, OutboundMessageMapper<?> outboundMessageMapper)
public void setInboundMessageMapper(InboundMessageMapper<?> inboundMessageMapper)
public void setOutboundMessageMapper(OutboundMessageMapper<?> outboundMessageMapper)
public void setBeanFactory(BeanFactory beanFactory) throws BeansException
setBeanFactory
in interface BeanFactoryAware
BeansException
public Message<?> toMessage(Object object, MessageHeaders headers)
toMessage
in interface MessageConverter
public Object fromMessage(Message<?> message, Class<?> targetClass)
fromMessage
in interface MessageConverter