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 ObjectFactory
ObjectFactory.ObjectInfo -
Field Summary
Fields inherited from class ObjectFactory
logFields inherited from interface IDataSourceFactory
DEFAULT_DATASOURCE_NAME_PROPERTY, GLOBAL_DEFAULT_DATASOURCE_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final @NonNull DataSourceaugment(@NonNull CommonDataSource dataSource, @NonNull 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 @NonNull ObjectFactory.ObjectInfotoObjectInfo(String name) Mapping fromto a information object, used for logging and console actions. Methods inherited from class NonTransactionalDataSourceFactory
getDataSource, getDataSourceNamesMethods inherited from class ObjectFactory
add, afterPropertiesSet, destroy, destroyObject, get, getObjectInfo, getObjectNames, postDestroyMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IDataSourceFactory
getDataSource
-
Constructor Details
-
DataSourceFactory
public DataSourceFactory()
-
-
Method Details
-
augmentDatasource
Allow implementing classes to augment the DataSource. Seeaugment(CommonDataSource, String). -
augment
protected final @NonNull 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>
-