Interface DatabaseInitializerDetector
- All Superinterfaces:
- Ordered
- All Known Implementing Classes:
- AbstractBeansOfTypeDatabaseInitializerDetector
Detects beans that initialize an SQL database. Implementations should be registered in
 
META-INF/spring.factories under the key
 org.springframework.boot.sql.init.dependency.DatabaseInitializerDetector.- Since:
- 2.5.0
- Author:
- Andy Wilkinson
- 
Field SummaryFields inherited from interface org.springframework.core.OrderedHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
- 
Method SummaryModifier and TypeMethodDescriptiondetect(ConfigurableListableBeanFactory beanFactory) Detect beans defined in the givenbeanFactorythat initialize aDataSource.default voiddetectionComplete(ConfigurableListableBeanFactory beanFactory, Set<String> dataSourceInitializerNames) Callback indicating that all knownDataSourceInitializerDetectorshave been called and detection of beans that initialize aDataSourceis complete.default intgetOrder()
- 
Method Details- 
detectDetect beans defined in the givenbeanFactorythat initialize aDataSource.- Parameters:
- beanFactory- bean factory to examine
- Returns:
- names of the detected DataSourceinitializer beans, or an empty set if none were detected.
 
- 
detectionCompletedefault void detectionComplete(ConfigurableListableBeanFactory beanFactory, Set<String> dataSourceInitializerNames) Callback indicating that all knownDataSourceInitializerDetectorshave been called and detection of beans that initialize aDataSourceis complete.- Parameters:
- beanFactory- bean factory that was examined
- dataSourceInitializerNames- names of the- DataSourceinitializer beans detected by all known detectors
 
- 
getOrderdefault int getOrder()
 
-