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) |
protected MessageBuilderFactory |
getMessageBuilderFactory() |
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 final void setInboundMessageMapper(InboundMessageMapper<?> inboundMessageMapper)
public final void setOutboundMessageMapper(OutboundMessageMapper<?> outboundMessageMapper)
public void setBeanFactory(BeanFactory beanFactory) throws BeansException
setBeanFactory
in interface BeanFactoryAware
BeansException
protected MessageBuilderFactory getMessageBuilderFactory()
@Nullable public Message<?> toMessage(Object object, @Nullable MessageHeaders headers)
toMessage
in interface MessageConverter
@Nullable public Object fromMessage(Message<?> message, Class<?> targetClass)
fromMessage
in interface MessageConverter