Package org.nuxeo.runtime.datasource
Class PooledDataSourceRegistry
- java.lang.Object
-
- org.nuxeo.runtime.datasource.PooledDataSourceRegistry
-
public class PooledDataSourceRegistry extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPooledDataSourceRegistry.ConfigurableManagedDataSourceABasicManagedDataSourcethat can configure its internalXADataSource.static classPooledDataSourceRegistry.TransactionManagerWithoutTransactionTransaction Manager that is never in a transaction and doesn't allow starting one.
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,DataSource>dataSourcesprotected Map<String,DataSource>dataSourcesNoSharing
-
Constructor Summary
Constructors Constructor Description PooledDataSourceRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateAlias(String name, DataSource ds)org.apache.commons.dbcp2.managed.BasicManagedDataSourcecreatePooledDataSource(Map<String,String> properties, boolean noSharing)<T> TgetDataSource(String name, Class<T> type, boolean noSharing)voidregisterPooledDataSource(String name, Map<String,String> properties)voidremoveAlias(String name)protected voidunregisterPooledDataSource(String name)
-
-
-
Field Detail
-
dataSources
protected final Map<String,DataSource> dataSources
-
dataSourcesNoSharing
protected final Map<String,DataSource> dataSourcesNoSharing
-
-
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)
-
unregisterPooledDataSource
protected void unregisterPooledDataSource(String name)
-
createAlias
public void createAlias(String name, DataSource ds)
-
removeAlias
public void removeAlias(String name)
-
-