INT-3295 Datatype Channel : Use MessageConverter
JIRA: https://jira.springsource.org/browse/INT-3295 Instead of invoking the conversion service directly, do it via a MessageConverter (DefaultDatatypeChannelMessageConverter). That way, users can override the MessageConverter; for example, XD wants to look at the content-type header during the conversion process (and update the content-type). INT-3295 Polishing PR Comments.
This commit is contained in:
committed by
Artem Bilan
parent
814caea5d5
commit
25489adaa3
@@ -255,7 +255,7 @@ public class IntegrationMBeanExporter extends MBeanExporter implements BeanPostP
|
||||
}
|
||||
}
|
||||
|
||||
if (IntegrationContextUtils.INTEGRATION_MESSAGE_HISTORY_CONFIGURER.equals(beanName)
|
||||
if (IntegrationContextUtils.INTEGRATION_MESSAGE_HISTORY_CONFIGURER_BEAN_NAME.equals(beanName)
|
||||
&& bean instanceof MessageHistoryConfigurer) {
|
||||
this.messageHistoryConfigurer = (MessageHistoryConfigurer) bean;
|
||||
return bean;
|
||||
@@ -462,7 +462,7 @@ public class IntegrationMBeanExporter extends MBeanExporter implements BeanPostP
|
||||
registerEndpoints();
|
||||
if (this.messageHistoryConfigurer != null) {
|
||||
this.registerBeanInstance(this.messageHistoryConfigurer,
|
||||
IntegrationContextUtils.INTEGRATION_MESSAGE_HISTORY_CONFIGURER);
|
||||
IntegrationContextUtils.INTEGRATION_MESSAGE_HISTORY_CONFIGURER_BEAN_NAME);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user