Annotation Interface EnableIntegration
@Target(TYPE)
@Retention(RUNTIME)
@Documented
@Import(IntegrationRegistrar.class)
public @interface EnableIntegration
The main configuration annotation to enable Spring Integration infrastructure:
- Registers some built-in beans;
- Adds several
BeanFactoryPostProcessor
s;
- Adds several BeanPostProcessor
s;
- Adds annotations processors.
Add this annotation to an @Configuration
class to have
the imported Spring Integration configuration :
@Configuration @EnableIntegration @ComponentScan(basePackageClasses = { MyConfiguration.class }) public class MyIntegrationConfiguration { }
- Since:
- 4.0
- Author:
- Artem Bilan
- See Also: