Package org.clazzes.util.jdbc.provider
Interface IDataSourceKeeper
-
- All Known Implementing Classes:
JdbcProvider
public interface IDataSourceKeeper
Internal interface for the maintainer of datasources.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DataSourceRecord
getDataSourceRecord(String name)
Get a configured datasource.Map<String,Boolean>
listDataSources()
boolean
restartDataSource(String name)
Restart and possibly re-export the given datasource as an OSGi service.
-
-
-
Method Detail
-
getDataSourceRecord
DataSourceRecord getDataSourceRecord(String name)
Get a configured datasource.- Parameters:
name
- The name of the datasource.- Returns:
- The associated record.
-
listDataSources
Map<String,Boolean> listDataSources()
- Returns:
- A list of datasources along with their activation status.
-
restartDataSource
boolean restartDataSource(String name) throws org.osgi.service.cm.ConfigurationException
Restart and possibly re-export the given datasource as an OSGi service.- Parameters:
name
- The name of the datasource to restart.- Throws:
org.osgi.service.cm.ConfigurationException
-
-