Class SimpleMessageConverter
java.lang.Object
org.springframework.integration.support.converter.SimpleMessageConverter
- All Implemented Interfaces:
Aware
,BeanFactoryAware
,MessageConverter
- Since:
- 2.0
- Author:
- Mark Fisher, Gary Russell, Artem Bilan
-
Constructor Summary
ConstructorDescriptionSimpleMessageConverter
(InboundMessageMapper<?> inboundMessageMapper) SimpleMessageConverter
(InboundMessageMapper<?> inboundMessageMapper, OutboundMessageMapper<?> outboundMessageMapper) SimpleMessageConverter
(OutboundMessageMapper<?> outboundMessageMapper) -
Method Summary
Modifier and TypeMethodDescriptionfromMessage
(Message<?> message, Class<?> targetClass) protected MessageBuilderFactory
void
setBeanFactory
(BeanFactory beanFactory) final void
setInboundMessageMapper
(InboundMessageMapper<?> inboundMessageMapper) final void
setOutboundMessageMapper
(OutboundMessageMapper<?> outboundMessageMapper) Message<?>
toMessage
(Object object, MessageHeaders headers)
-
Constructor Details
-
SimpleMessageConverter
public SimpleMessageConverter() -
SimpleMessageConverter
-
SimpleMessageConverter
-
SimpleMessageConverter
public SimpleMessageConverter(InboundMessageMapper<?> inboundMessageMapper, OutboundMessageMapper<?> outboundMessageMapper)
-
-
Method Details
-
setInboundMessageMapper
-
setOutboundMessageMapper
public final void setOutboundMessageMapper(@Nullable OutboundMessageMapper<?> outboundMessageMapper) -
setBeanFactory
- Specified by:
setBeanFactory
in interfaceBeanFactoryAware
- Throws:
BeansException
-
getMessageBuilderFactory
-
toMessage
- Specified by:
toMessage
in interfaceMessageConverter
-
fromMessage
- Specified by:
fromMessage
in interfaceMessageConverter
-