public class ConfigurableCompositeMessageConverter extends CompositeMessageConverter implements BeanFactoryAware, 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(Collection<MessageConverter> converters)
Create an instance with the given converters and without defaults.
|
ConfigurableCompositeMessageConverter(Collection<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(BeanFactory beanFactory) |
fromMessage, fromMessage, getConverters, toMessage, toMessage, toStringpublic ConfigurableCompositeMessageConverter()
public ConfigurableCompositeMessageConverter(Collection<MessageConverter> converters)
converters - the converters to usepublic ConfigurableCompositeMessageConverter(Collection<MessageConverter> converters, boolean registerDefaults)
converters - the converters to useregisterDefaults - register or not default convertspublic void setBeanFactory(BeanFactory beanFactory) throws BeansException
setBeanFactory in interface BeanFactoryAwareBeansExceptionpublic void afterPropertiesSet()
afterPropertiesSet in interface InitializingBean