public interface DatabaseInitializerDetector
extends org.springframework.core.Ordered
META-INF/spring.factories under the key
org.springframework.boot.sql.init.dependency.DatabaseInitializerDetector.| 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 initialize a
DataSource. |
default void |
detectionComplete(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory,
java.util.Set<java.lang.String> dataSourceInitializerNames)
Callback indicating that all known
DataSourceInitializerDetectors have been
called and detection of beans that initialize a DataSource is complete. |
default int |
getOrder() |
java.util.Set<java.lang.String> detect(org.springframework.beans.factory.config.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(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory,
java.util.Set<java.lang.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 detectorsdefault int getOrder()
getOrder in interface org.springframework.core.Ordered