Class CodecMessageConverter
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.codec.CodecMessageConverter
- All Implemented Interfaces:
Aware
,BeanFactoryAware
,BeanNameAware
,InitializingBean
,ApplicationContextAware
,ExpressionCapable
,NamedComponent
,MessageConverter
public class CodecMessageConverter extends IntegrationObjectSupport implements MessageConverter
A
MessageConverter
that delegates to a Codec
to convert- Since:
- 4.2
- Author:
- Gary Russell
-
Field Summary
Fields inherited from class org.springframework.integration.context.IntegrationObjectSupport
EXPRESSION_PARSER, logger
-
Constructor Summary
Constructors Constructor Description CodecMessageConverter(Codec codec)
-
Method Summary
Modifier and Type Method Description Object
fromMessage(Message<?> message, Class<?> targetClass)
Message<?>
toMessage(Object payload, MessageHeaders headers)
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getComponentType, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, onInit, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toString
-
Constructor Details
-
Method Details
-
fromMessage
- Specified by:
fromMessage
in interfaceMessageConverter
-
toMessage
- Specified by:
toMessage
in interfaceMessageConverter
-