public class MessageConverterConfigurer extends Object implements MessageChannelConfigurer, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean
MessageChannelConfigurer that sets data types and message converters based on BindingProperties.contentType. Also adds a ChannelInterceptor to
the message channel to set the `ContentType` header for the message (if not already set) based on the `ContentType`
binding property of the channel.| Constructor and Description |
|---|
MessageConverterConfigurer(ChannelBindingServiceProperties channelBindingServiceProperties,
org.springframework.integration.support.MessageBuilderFactory messageBuilderFactory,
CompositeMessageConverterFactory compositeMessageConverterFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
configureMessageChannel(org.springframework.messaging.MessageChannel channel,
String channelName)
Setup data-type and message converters for the given message channel.
|
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
public MessageConverterConfigurer(ChannelBindingServiceProperties channelBindingServiceProperties, org.springframework.integration.support.MessageBuilderFactory messageBuilderFactory, CompositeMessageConverterFactory compositeMessageConverterFactory)
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwareorg.springframework.beans.BeansExceptionpublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void configureMessageChannel(org.springframework.messaging.MessageChannel channel,
String channelName)
configureMessageChannel in interface MessageChannelConfigurerchannel - message channel to set the data-type and message converterschannelName - the channel nameCopyright © 2016 Pivotal Software, Inc.. All rights reserved.