Example usage for org.springframework.integration.context IntegrationContextUtils INTEGRATION_CONFIGURATION_POST_PROCESSOR_BEAN_NAME

List of usage examples for org.springframework.integration.context IntegrationContextUtils INTEGRATION_CONFIGURATION_POST_PROCESSOR_BEAN_NAME

Introduction

In this page you can find the example usage for org.springframework.integration.context IntegrationContextUtils INTEGRATION_CONFIGURATION_POST_PROCESSOR_BEAN_NAME.

Prototype

String INTEGRATION_CONFIGURATION_POST_PROCESSOR_BEAN_NAME

To view the source code for org.springframework.integration.context IntegrationContextUtils INTEGRATION_CONFIGURATION_POST_PROCESSOR_BEAN_NAME.

Click Source Link

Usage

From source file:org.springframework.integration.config.IntegrationRegistrar.java

/**
 * Register {@link IntegrationConfigurationBeanFactoryPostProcessor}
 * to process the external Integration infrastructure.
 *//*from  w ww. j  a  va 2 s  . c  om*/
private void registerIntegrationConfigurationBeanFactoryPostProcessor(BeanDefinitionRegistry registry) {
    if (!registry.containsBeanDefinition(
            IntegrationContextUtils.INTEGRATION_CONFIGURATION_POST_PROCESSOR_BEAN_NAME)) {
        BeanDefinitionBuilder postProcessorBuilder = BeanDefinitionBuilder
                .genericBeanDefinition(IntegrationConfigurationBeanFactoryPostProcessor.class)
                .setRole(BeanDefinition.ROLE_INFRASTRUCTURE);
        registry.registerBeanDefinition(
                IntegrationContextUtils.INTEGRATION_CONFIGURATION_POST_PROCESSOR_BEAN_NAME,
                postProcessorBuilder.getBeanDefinition());
    }
}