Class PooledDataSourceRegistry


  • public class PooledDataSourceRegistry
    extends Object
    • Constructor Detail

      • PooledDataSourceRegistry

        public PooledDataSourceRegistry()
    • Method Detail

      • getDataSource

        public <T> T getDataSource​(String name,
                                   Class<T> type,
                                   boolean noSharing)
      • registerPooledDataSource

        public void registerPooledDataSource​(String name,
                                             Map<String,​String> properties)
      • createPooledDataSource

        public org.apache.commons.dbcp2.managed.BasicManagedDataSource createPooledDataSource​(Map<String,​String> properties,
                                                                                              boolean noSharing)
      • clear

        public void clear()
        Clears the DataSource contained in this registry.

        This will close the Connection contained in the BasicManagedDataSource pool.

      • unregisterPooledDataSource

        protected void unregisterPooledDataSource​(String name)
      • closeDataSource

        protected void closeDataSource​(String name,
                                       org.apache.commons.dbcp2.managed.BasicManagedDataSource dataSource)
      • removeAlias

        public void removeAlias​(String name)