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.Modifier and Type | Class and Description |
---|---|
protected class |
MessageConverterConfigurer.PartitioningInterceptor |
Constructor and Description |
---|
MessageConverterConfigurer(BindingServiceProperties bindingServiceProperties,
CompositeMessageConverterFactory compositeMessageConverterFactory) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
configureInputChannel(org.springframework.messaging.MessageChannel messageChannel,
String channelName)
Configure the given input message channel.
|
void |
configureOutputChannel(org.springframework.messaging.MessageChannel messageChannel,
String channelName)
Configure the given output message channel.
|
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
public MessageConverterConfigurer(BindingServiceProperties bindingServiceProperties, CompositeMessageConverterFactory compositeMessageConverterFactory)
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
org.springframework.beans.BeansException
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public void configureInputChannel(org.springframework.messaging.MessageChannel messageChannel, String channelName)
MessageChannelConfigurer
configureInputChannel
in interface MessageChannelConfigurer
messageChannel
- the message channelchannelName
- name of the message channelpublic void configureOutputChannel(org.springframework.messaging.MessageChannel messageChannel, String channelName)
MessageChannelConfigurer
configureOutputChannel
in interface MessageChannelConfigurer
messageChannel
- the message channelchannelName
- name of the message channelCopyright © 2017 Pivotal Software, Inc.. All rights reserved.