List of usage examples for org.springframework.integration.context IntegrationContextUtils INTEGRATION_DATATYPE_CHANNEL_MESSAGE_CONVERTER_BEAN_NAME
String INTEGRATION_DATATYPE_CHANNEL_MESSAGE_CONVERTER_BEAN_NAME
To view the source code for org.springframework.integration.context IntegrationContextUtils INTEGRATION_DATATYPE_CHANNEL_MESSAGE_CONVERTER_BEAN_NAME.
Click Source Link
From source file:org.springframework.integration.config.IntegrationRegistrar.java
/** * Register the default datatype channel MessageConverter. * @param registry the registry.//from w ww . ja va 2 s . c o m */ private void registerDefaultDatatypeChannelMessageConverter(BeanDefinitionRegistry registry) { boolean alreadyRegistered = false; if (registry instanceof ListableBeanFactory) { alreadyRegistered = ((ListableBeanFactory) registry) .containsBean(IntegrationContextUtils.INTEGRATION_DATATYPE_CHANNEL_MESSAGE_CONVERTER_BEAN_NAME); } else { alreadyRegistered = registry.isBeanNameInUse( IntegrationContextUtils.INTEGRATION_DATATYPE_CHANNEL_MESSAGE_CONVERTER_BEAN_NAME); } if (!alreadyRegistered) { BeanDefinitionBuilder converterBuilder = BeanDefinitionBuilder .genericBeanDefinition(DefaultDatatypeChannelMessageConverter.class); registry.registerBeanDefinition( IntegrationContextUtils.INTEGRATION_DATATYPE_CHANNEL_MESSAGE_CONVERTER_BEAN_NAME, converterBuilder.getBeanDefinition()); } }