Class DataSourceServiceProvider


  • @ApplicationScoped
    public class DataSourceServiceProvider
    extends Object
    Provides DataSourceService instances and caches them in a global cache.
    Author:
    mtaal
    • Constructor Detail

      • DataSourceServiceProvider

        public DataSourceServiceProvider()
    • Method Detail

      • getDataSource

        public DataSourceService getDataSource​(String dataSourceIdentifier)
        Checks the internal cache for a datasource with the requested name and returns it if found. If not found a new one is created, which is cached and then returned.
        Parameters:
        dataSourceIdentifier - the name by which to search and identify the data source.
        Returns:
        a DataSourceService object