Class PooledDataSourceRegistry

java.lang.Object
org.nuxeo.runtime.datasource.PooledDataSourceRegistry

public class PooledDataSourceRegistry extends Object
  • Field Details

  • Constructor Details

    • PooledDataSourceRegistry

      public PooledDataSourceRegistry()
  • Method Details

    • 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)
    • createAlias

      public void createAlias(String name, DataSource ds)
    • removeAlias

      public void removeAlias(String name)