Example usage for org.springframework.integration.config IntegrationRegistrar registerBeanDefinitions

List of usage examples for org.springframework.integration.config IntegrationRegistrar registerBeanDefinitions

Introduction

In this page you can find the example usage for org.springframework.integration.config IntegrationRegistrar registerBeanDefinitions.

Prototype

@Override
public void registerBeanDefinitions(@Nullable AnnotationMetadata importingClassMetadata,
        BeanDefinitionRegistry registry) 

Source Link

Document

Invoked by the framework when an @EnableIntegration annotation is encountered.

Usage

From source file:org.springframework.integration.config.xml.AbstractIntegrationNamespaceHandler.java

@Override
public final BeanDefinition parse(Element element, ParserContext parserContext) {
    this.verifySchemaVersion(element, parserContext);
    IntegrationRegistrar integrationRegistrar = new IntegrationRegistrar();
    integrationRegistrar.setBeanClassLoader(parserContext.getReaderContext().getBeanClassLoader());
    integrationRegistrar.registerBeanDefinitions(null, parserContext.getRegistry());
    return this.delegate.parse(element, parserContext);
}