Interface ImportBeanDefinitionRegistrar

All Known Implementing Classes:

public interface ImportBeanDefinitionRegistrar
Interface to be implemented by types that register additional bean definitions when processing @Configuration classes. Useful when operating at the bean definition level (as opposed to @Bean method/instance level) is desired or necessary.

Along with @Configuration and ImportSelector, classes of this type may be provided to the @Import annotation (or may also be returned from an ImportSelector).

An ImportBeanDefinitionRegistrar may implement any of the following Aware interfaces, and their respective methods will be called prior to registerBeanDefinitions(org.springframework.core.type.AnnotationMetadata,,

Alternatively, the class may provide a single constructor with one or more of the following supported parameter types:

See implementations and associated unit tests for usage examples.

Chris Beams, Juergen Hoeller
See Also: