Package com.atomikos.spring
Class AtomikosDataSourceBean
java.lang.Object
com.atomikos.jdbc.internal.AbstractDataSourceBean
com.atomikos.jdbc.AtomikosDataSourceBean
com.atomikos.spring.AtomikosDataSourceBean
- All Implemented Interfaces:
com.atomikos.datasource.pool.ConnectionPoolProperties,com.atomikos.icatch.OrderedLifecycleComponent,Serializable,Wrapper,Referenceable,CommonDataSource,DataSource,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.InitializingBean
@ConfigurationProperties(prefix="spring.jta.atomikos.datasource")
public class AtomikosDataSourceBean
extends com.atomikos.jdbc.AtomikosDataSourceBean
implements org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
Spring friendly version of
AtomikosDataSourceBean.- See Also:
-
Field Summary
Fields inherited from interface com.atomikos.datasource.pool.ConnectionPoolProperties
DEFAULT_BORROW_CONNECTION_TIMEOUT, DEFAULT_ISOLATION_LEVEL_UNSET, DEFAULT_MAINTENANCE_INTERVAL, DEFAULT_MAX_IDLE_TIME, DEFAULT_MAX_LIFETIME, DEFAULT_POOL_SIZE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.atomikos.jdbc.AtomikosDataSourceBean
doClose, doInit, getIgnoreJtaTransactions, getLocalTransactionMode, getXaDataSource, getXaDataSourceClassName, getXaProperties, isAssignableFromWrappedVendorClass, setLocalTransactionMode, setXaDataSource, setXaDataSourceClassName, setXaProperties, unwrapVendorInstanceMethods inherited from class com.atomikos.jdbc.internal.AbstractDataSourceBean
close, getBorrowConnectionTimeout, getConcurrentConnectionValidation, getConnection, getConnection, getDefaultIsolationLevel, getLoginTimeout, getLogWriter, getMaintenanceInterval, getMaxIdleTime, getMaxLifetime, getMaxPoolSize, getMinPoolSize, getParentLogger, getReference, getTestQuery, getUniqueResourceName, init, isWrapperFor, poolAvailableSize, poolTotalSize, refreshPool, setBorrowConnectionTimeout, setConcurrentConnectionValidation, setDefaultIsolationLevel, setLoginTimeout, setLogWriter, setMaintenanceInterval, setMaxIdleTime, setMaxLifetime, setMaxPoolSize, setMinPoolSize, setPoolSize, setTestQuery, setUniqueResourceName, throwAtomikosSQLException, toString, unwrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilderMethods inherited from interface javax.sql.DataSource
createConnectionBuilder
-
Constructor Details
-
AtomikosDataSourceBean
public AtomikosDataSourceBean()
-
-
Method Details
-
setBeanName
- Specified by:
setBeanNamein interfaceorg.springframework.beans.factory.BeanNameAware
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
destroy
- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean- Throws:
Exception
-