Class DatabaseInitializationDependencyConfigurer

java.lang.Object
org.springframework.boot.sql.init.dependency.DatabaseInitializationDependencyConfigurer
All Implemented Interfaces:
org.springframework.context.annotation.ImportBeanDefinitionRegistrar

public class DatabaseInitializationDependencyConfigurer extends Object implements org.springframework.context.annotation.ImportBeanDefinitionRegistrar
Configures beans that depend upon SQL database initialization with dependencies upon beans that perform database initialization. Intended for import in configuration classes that define database initialization beans or that define beans that require database initialization to have completed before they are initialized.

Beans that initialize a database are identified by DatabaseInitializerDetectors. Beans that depend upon database initialization are identified by DependsOnDatabaseInitializationDetectors.

Since:
2.5.0
See Also:
  • Constructor Details

    • DatabaseInitializationDependencyConfigurer

      public DatabaseInitializationDependencyConfigurer()
  • Method Details

    • registerBeanDefinitions

      public void registerBeanDefinitions(org.springframework.core.type.AnnotationMetadata importingClassMetadata, org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
      Specified by:
      registerBeanDefinitions in interface org.springframework.context.annotation.ImportBeanDefinitionRegistrar