Package org.jppf.persistence
Interface DatasourceInitializer
- All Known Implementing Classes:
DatasourceInitializerImpl
public interface DatasourceInitializer
- Author:
- Laurent Cohen
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose(DataSource datasource) Close the specified datasource and release the resources it is using.createDataSource(TypedProperties props, String configId) Create a datasource from the specified configuration proeprties.
-
Method Details
-
createDataSource
Create 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.- Parameters:
props- the datasource properties.configId- the identifier of the datasource in the configuration.- Returns:
- a
DataSourceinstance.
-
close
Close the specified datasource and release the resources it is using.- Parameters:
datasource- the datasource to close.
-