@Configuration @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 org.springframework.beans.factory.BeanClassLoaderAware
Auto-configuration
for DataSource
with XA.Constructor and Description |
---|
XADataSourceAutoConfiguration(XADataSourceWrapper wrapper,
DataSourceProperties properties,
org.springframework.beans.factory.ObjectProvider<XADataSource> xaDataSource) |
Modifier and Type | Method and Description |
---|---|
DataSource |
dataSource() |
void |
setBeanClassLoader(ClassLoader classLoader) |
public XADataSourceAutoConfiguration(XADataSourceWrapper wrapper, DataSourceProperties properties, org.springframework.beans.factory.ObjectProvider<XADataSource> xaDataSource)
@Bean public DataSource dataSource() throws Exception
Exception
public void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader
in interface org.springframework.beans.factory.BeanClassLoaderAware
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.