public class ConfigurableCompositeMessageConverter
extends org.springframework.messaging.converter.CompositeMessageConverter
implements org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean
CompositeMessageConverter extension with some default MessageConverters
which can be overridden with the given converters
or added in the end of target converters collection.
The default converts are (declared exactly in this order):
MappingJackson2MessageConverter if Jackson processor is present in classpath;
ByteArrayMessageConverter
ObjectStringMessageConverter
GenericMessageConverter
| Constructor and Description |
|---|
ConfigurableCompositeMessageConverter()
Create an instance with the default converters.
|
ConfigurableCompositeMessageConverter(java.util.Collection<org.springframework.messaging.converter.MessageConverter> converters)
Create an instance with the given converters and without defaults.
|
ConfigurableCompositeMessageConverter(java.util.Collection<org.springframework.messaging.converter.MessageConverter> converters,
boolean registerDefaults)
Create an instance with the given converters and with defaults in the end.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
public ConfigurableCompositeMessageConverter()
public ConfigurableCompositeMessageConverter(java.util.Collection<org.springframework.messaging.converter.MessageConverter> converters)
converters - the converters to usepublic ConfigurableCompositeMessageConverter(java.util.Collection<org.springframework.messaging.converter.MessageConverter> converters,
boolean registerDefaults)
converters - the converters to useregisterDefaults - register or not default convertspublic 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()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean