public interface DatabaseInitializerDetector extends Ordered
META-INF/spring.factories
under the key
org.springframework.boot.sql.init.dependency.DatabaseInitializerDetector
.HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Modifier and Type | Method and Description |
---|---|
Set<String> |
detect(ConfigurableListableBeanFactory beanFactory)
Detect beans defined in the given
beanFactory that initialize a
DataSource . |
default void |
detectionComplete(ConfigurableListableBeanFactory beanFactory,
Set<String> dataSourceInitializerNames)
Callback indicating that all known
DataSourceInitializerDetectors have been
called and detection of beans that initialize a DataSource is complete. |
default int |
getOrder() |
Set<String> detect(ConfigurableListableBeanFactory beanFactory)
beanFactory
that initialize a
DataSource
.beanFactory
- bean factory to examineDataSource
initializer beans, or an empty set
if none were detected.default void detectionComplete(ConfigurableListableBeanFactory beanFactory, Set<String> dataSourceInitializerNames)
DataSourceInitializerDetectors
have been
called and detection of beans that initialize a DataSource
is complete.beanFactory
- bean factory that was examineddataSourceInitializerNames
- names of the DataSource
initializer beans
detected by all known detectors