@Configuration @ConditionalOnClass(value=) @ConditionalOnMissingBean(value=javax.sql.DataSource.class) public class DataSourceAutoConfiguration extends Object implements org.springframework.context.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 |
Constructor and Description |
---|
DataSourceAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
static boolean |
containsAutoConfiguredDataSource(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
Determines if the
dataSource being used by Spring was created from
EmbeddedDataSourceConfiguration . |
protected void |
initialize() |
void |
setEnvironment(org.springframework.core.env.Environment environment) |
public void setEnvironment(org.springframework.core.env.Environment environment)
setEnvironment
in interface org.springframework.context.EnvironmentAware
@PostConstruct protected void initialize() throws Exception
Exception
public static boolean containsAutoConfiguredDataSource(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
dataSource
being used by Spring was created from
EmbeddedDataSourceConfiguration
.Copyright © 2013. All rights reserved.