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

    Modifier and Type
    Method
    Description
    detect(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
    Detect beans defined in the given beanFactory that depend on database initialization.
  • Method Details

    • detect

      Set<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