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
log
Fields inherited from interface org.frankframework.jdbc.IDataSourceFactory
DEFAULT_DATASOURCE_NAME_PROPERTY, GLOBAL_DEFAULT_DATASOURCE_NAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final DataSource
augment
(CommonDataSource dataSource, String dataSourceName) Ensure that the outermost DataSource proxy/wrapper in the chain is theTransactionAwareDataSourceProxy
.protected DataSource
augmentDatasource
(CommonDataSource dataSource, String dataSourceName) Allow implementing classes to augment the DataSource.protected ObjectFactory.ObjectInfo
toObjectInfo
(String name) Mapping fromto a information object, used for logging and console actions. Methods inherited from class org.frankframework.jdbc.datasource.NonTransactionalDataSourceFactory
getDataSource, getDataSourceNames
Methods inherited from class org.frankframework.jdbc.datasource.ObjectFactory
add, afterPropertiesSet, destroy, destroyObject, get, getObjectInfo, getObjectNames, postDestroy
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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 theTransactionAwareDataSourceProxy
will NOT work!- Overrides:
augment
in classObjectFactory<DataSource,
CommonDataSource>
-
toObjectInfo
Description copied from class:ObjectFactory
Mapping fromto a information object, used for logging and console actions. - Overrides:
toObjectInfo
in classObjectFactory<DataSource,
CommonDataSource>
-