Class DataSourceFactory
java.lang.Object
org.frankframework.jdbc.datasource.ObjectFactory<DataSource,CommonDataSource>
org.frankframework.jdbc.datasource.NonTransactionalDataSourceFactory
org.frankframework.jdbc.datasource.DataSourceFactory
- All Implemented Interfaces:
IDataSourceFactory,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
PoolingDataSourceFactory
Factory through which (TX-enabled) DataSources can be retrieved.
Default implementation, does not use pooling, wraps the
DataSource in a
invalid @link
{@link TransactionAwareDataSourceProxy).
-
Nested Class Summary
Nested classes/interfaces inherited from class org.frankframework.jdbc.datasource.ObjectFactory
ObjectFactory.ObjectInfo -
Field Summary
Fields inherited from class org.frankframework.jdbc.datasource.ObjectFactory
logFields inherited from interface org.frankframework.jdbc.IDataSourceFactory
DEFAULT_DATASOURCE_NAME_PROPERTY, GLOBAL_DEFAULT_DATASOURCE_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final DataSourceaugment(CommonDataSource dataSource, String dataSourceName) Ensure that the outermost DataSource proxy/wrapper in the chain is theTransactionAwareDataSourceProxy.protected DataSourceaugmentDatasource(CommonDataSource dataSource, String dataSourceName) Allow implementing classes to augment the DataSource.protected ObjectFactory.ObjectInfotoObjectInfo(String name) Mapping fromto a information object, used for logging and console actions. Methods inherited from class org.frankframework.jdbc.datasource.NonTransactionalDataSourceFactory
getDataSource, getDataSourceNamesMethods inherited from class org.frankframework.jdbc.datasource.ObjectFactory
add, afterPropertiesSet, destroy, destroyObject, get, getObjectInfo, getObjectNames, postDestroyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.frankframework.jdbc.IDataSourceFactory
getDataSource
-
Constructor Details
-
DataSourceFactory
public DataSourceFactory()
-
-
Method Details
-
augmentDatasource
Allow implementing classes to augment the DataSource. Seeaugment(CommonDataSource, String). -
augment
@Nonnull protected final DataSource augment(@Nonnull CommonDataSource dataSource, @Nonnull String dataSourceName) Ensure that the outermost DataSource proxy/wrapper in the chain is theTransactionAwareDataSourceProxy. Otherwise theTransactionAwareDataSourceProxywill NOT work!- Overrides:
augmentin classObjectFactory<DataSource,CommonDataSource>
-
toObjectInfo
Description copied from class:ObjectFactoryMapping fromto a information object, used for logging and console actions. - Overrides:
toObjectInfoin classObjectFactory<DataSource,CommonDataSource>
-