public class MessageConverterConfigurer extends Object implements MessageChannelAndSourceConfigurer, org.springframework.beans.factory.BeanFactoryAware
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 |
|---|---|
class |
MessageConverterConfigurer.PartitioningInterceptor |
| Constructor and Description |
|---|
MessageConverterConfigurer(BindingServiceProperties bindingServiceProperties,
CompositeMessageConverterFactory compositeMessageConverterFactory) |
| Modifier and Type | Method and Description |
|---|---|
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 |
configurePolledMessageSource(PollableMessageSource binding,
String name)
Configure the provided message source binding.
|
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.BeanFactoryAwareorg.springframework.beans.BeansExceptionpublic void configureInputChannel(org.springframework.messaging.MessageChannel messageChannel,
String channelName)
MessageChannelConfigurerconfigureInputChannel in interface MessageChannelConfigurermessageChannel - the message channelchannelName - name of the message channelpublic void configureOutputChannel(org.springframework.messaging.MessageChannel messageChannel,
String channelName)
MessageChannelConfigurerconfigureOutputChannel in interface MessageChannelConfigurermessageChannel - the message channelchannelName - name of the message channelpublic void configurePolledMessageSource(PollableMessageSource binding, String name)
MessageChannelAndSourceConfigurerconfigurePolledMessageSource in interface MessageChannelAndSourceConfigurerbinding - the binding.name - the name.Copyright © 2018 Pivotal Software, Inc.. All rights reserved.