org.springframework.boot.sql.init.dependency

Interface DependsOnDatabaseInitializationDetector

  • All Known Implementing Classes:
    AbstractBeansOfTypeDependsOnDatabaseInitializationDetector


    public interface DependsOnDatabaseInitializationDetector
    Detects beans that depend on database initialization. Implementations should be registered in META-INF/spring.factories under the key org.springframework.boot.sql.init.dependency.DependsOnDatabaseInitializationDetector.
    Since:
    2.5.0
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      java.util.Set<java.lang.String> detect(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
      Detect beans defined in the given beanFactory that depend on database initialization.
    • Method Detail

      • detect

        java.util.Set<java.lang.String> detect(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
        Detect beans defined in the given beanFactory that depend on database initialization. If no beans are detected, an empty set is returned.
        Parameters:
        beanFactory - bean factory to examine
        Returns:
        names of any beans that depend upon database initialization