@Configuration(proxyBeanMethods=false) @AutoConfigureBefore(value=DataSourceAutoConfiguration.class) @EnableConfigurationProperties(value=DataSourceProperties.class) @ConditionalOnClass(value={javax.sql.DataSource.class,javax.transaction.TransactionManager.class,org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType.class}) @ConditionalOnBean(value=XADataSourceWrapper.class) @ConditionalOnMissingBean(value=javax.sql.DataSource.class) public class XADataSourceAutoConfiguration extends Object implements BeanClassLoaderAware
Auto-configuration
for DataSource
with XA.Constructor and Description |
---|
XADataSourceAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
DataSource |
dataSource(XADataSourceWrapper wrapper,
DataSourceProperties properties,
ObjectProvider<XADataSource> xaDataSource) |
void |
setBeanClassLoader(ClassLoader classLoader) |
@Bean public DataSource dataSource(XADataSourceWrapper wrapper, DataSourceProperties properties, ObjectProvider<XADataSource> xaDataSource) throws Exception
Exception
public void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader
in interface BeanClassLoaderAware
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.