@Configuration @ConditionalOnClass(value=) public class DataSourceAutoConfiguration extends Object implements EnvironmentAware
Modifier and Type | Class and Description |
---|---|
protected static class |
DataSourceAutoConfiguration.DbcpConfiguration |
protected static class |
DataSourceAutoConfiguration.EmbeddedConfiguration |
protected static class |
DataSourceAutoConfiguration.JdbcTemplateConfiguration |
protected static class |
DataSourceAutoConfiguration.TomcatConfiguration |
Modifier and Type | Field and Description |
---|---|
static String |
CONFIGURATION_PREFIX |
Constructor and Description |
---|
DataSourceAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
static boolean |
containsAutoConfiguredDataSource(ConfigurableListableBeanFactory beanFactory)
Determines if the
dataSource being used by Spring was created from
EmbeddedDataSourceConfiguration . |
protected void |
initialize() |
void |
setEnvironment(Environment environment) |
public static final String CONFIGURATION_PREFIX
public void setEnvironment(Environment environment)
setEnvironment
in interface EnvironmentAware
@PostConstruct protected void initialize() throws Exception
Exception
public static boolean containsAutoConfiguredDataSource(ConfigurableListableBeanFactory beanFactory)
dataSource
being used by Spring was created from
EmbeddedDataSourceConfiguration
.Copyright © 2014. All rights reserved.