public class EmbeddedDatabaseContextCustomizerFactory
extends java.lang.Object
implements org.springframework.test.context.ContextCustomizerFactory
ContextCustomizerFactory interface,
which is responsible for initialization of the embedded database and its registration to the application context.
The applied initialization strategy is driven by the AutoConfigureEmbeddedDatabase annotation.AutoConfigureEmbeddedDatabase| Modifier and Type | Class and Description |
|---|---|
protected static class |
EmbeddedDatabaseContextCustomizerFactory.EmbeddedDatabaseConfiguration |
protected static class |
EmbeddedDatabaseContextCustomizerFactory.EmbeddedDatabaseContextCustomizer |
protected static class |
EmbeddedDatabaseContextCustomizerFactory.EmbeddedDatabaseRegistrar |
protected static class |
EmbeddedDatabaseContextCustomizerFactory.EnvironmentPostProcessor |
protected static class |
EmbeddedDatabaseContextCustomizerFactory.MultipleDatabasesConfiguration |
protected static class |
EmbeddedDatabaseContextCustomizerFactory.PreAutoConfigurationImportSelector |
protected static class |
EmbeddedDatabaseContextCustomizerFactory.PrimaryDataSourceAutoConfiguration |
protected static class |
EmbeddedDatabaseContextCustomizerFactory.SecondaryDataSourceAutoConfiguration |
protected static class |
EmbeddedDatabaseContextCustomizerFactory.SingleDatabaseConfiguration |
| Constructor and Description |
|---|
EmbeddedDatabaseContextCustomizerFactory() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.test.context.ContextCustomizer |
createContextCustomizer(java.lang.Class<?> testClass,
java.util.List<org.springframework.test.context.ContextConfigurationAttributes> configAttributes) |
protected static org.springframework.beans.factory.support.BeanDefinitionRegistry |
getBeanDefinitionRegistry(org.springframework.context.ApplicationContext context) |
protected static AutoConfigureEmbeddedDatabase.Replace |
getDatabaseReplaceMode(org.springframework.core.env.Environment environment,
java.util.Set<DatabaseDefinition> databaseDefinitions) |
protected static org.springframework.beans.factory.config.BeanDefinitionHolder |
getDataSourceBeanDefinition(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory,
DatabaseDefinition databaseDefinition) |
public EmbeddedDatabaseContextCustomizerFactory()
public org.springframework.test.context.ContextCustomizer createContextCustomizer(java.lang.Class<?> testClass,
java.util.List<org.springframework.test.context.ContextConfigurationAttributes> configAttributes)
createContextCustomizer in interface org.springframework.test.context.ContextCustomizerFactoryprotected static AutoConfigureEmbeddedDatabase.Replace getDatabaseReplaceMode(org.springframework.core.env.Environment environment, java.util.Set<DatabaseDefinition> databaseDefinitions)
protected static org.springframework.beans.factory.support.BeanDefinitionRegistry getBeanDefinitionRegistry(org.springframework.context.ApplicationContext context)
protected static org.springframework.beans.factory.config.BeanDefinitionHolder getDataSourceBeanDefinition(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory,
DatabaseDefinition databaseDefinition)