Interface IDataSourceKeeper

  • All Known Implementing Classes:
    JdbcProvider

    public interface IDataSourceKeeper
    Internal interface for the maintainer of datasources.
    • 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