Package org.jppf.persistence
Class DatasourceInitializerImpl
java.lang.Object
org.jppf.persistence.DatasourceInitializerImpl
- All Implemented Interfaces:
DatasourceInitializer
- Author:
- Laurent Cohen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose(DataSource datasource) Close the specified datasource and release the resources it is using.createDataSource(TypedProperties props, String dsName) Create a datasource from the specified configuration proeprties.
-
Constructor Details
-
DatasourceInitializerImpl
public DatasourceInitializerImpl()
-
-
Method Details
-
createDataSource
Description copied from interface:DatasourceInitializerCreate a datasource from the specified configuration proeprties. The configId is used to build a prefix for the relevant property names, in the formatjppf.datasource.<configId>.<property_name> = <value>. If configId isnull, then no prefix is applied.- Specified by:
createDataSourcein interfaceDatasourceInitializer- Parameters:
props- the datasource properties.dsName- the identifier of the datasource in the configuration.- Returns:
- a
DataSourceinstance.
-
close
Description copied from interface:DatasourceInitializerClose the specified datasource and release the resources it is using.- Specified by:
closein interfaceDatasourceInitializer- Parameters:
datasource- the datasource to close.
-