org.springframework.boot.sql.init.dependency

Class DatabaseInitializationDependencyConfigurer

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


    public class DatabaseInitializationDependencyConfigurer
    extends java.lang.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:
    DatabaseInitializerDetector, DependsOnDatabaseInitializationDetector, DependsOnDatabaseInitialization
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void registerBeanDefinitions(org.springframework.core.type.AnnotationMetadata importingClassMetadata, org.springframework.beans.factory.support.BeanDefinitionRegistry registry) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.springframework.context.annotation.ImportBeanDefinitionRegistrar

        registerBeanDefinitions
    • Method Detail

      • 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