接口 DatabaseInitializerDetector
- 所有超级接口:
Ordered
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.- 从以下版本开始:
- 2.5.0
- 作者:
- Andy Wilkinson
-
字段概要
从接口继承的字段 org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
方法概要
修饰符和类型方法说明detect(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()
-
方法详细资料
-
detect
Detect beans defined in the givenbeanFactorythat initialize aDataSource.- 参数:
beanFactory- bean factory to examine- 返回:
- names of the detected
DataSourceinitializer beans, or an empty set if none were detected.
-
detectionComplete
default void detectionComplete(ConfigurableListableBeanFactory beanFactory, Set<String> dataSourceInitializerNames) Callback indicating that all knownDataSourceInitializerDetectorshave been called and detection of beans that initialize aDataSourceis complete.- 参数:
beanFactory- bean factory that was examineddataSourceInitializerNames- names of theDataSourceinitializer beans detected by all known detectors
-
getOrder
default int getOrder()
-