Package org.nuxeo.runtime.datasource
Class PooledDataSourceRegistry
java.lang.Object
org.nuxeo.runtime.datasource.PooledDataSourceRegistry
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
ABasicManagedDataSource
that can configure its internalXADataSource
.static class
Transaction Manager that is never in a transaction and doesn't allow starting one. -
Field Summary
Modifier and TypeFieldDescriptionprotected final Map<String,
DataSource> protected final Map<String,
DataSource> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clears theDataSource
contained in this registry.protected void
closeDataSource
(String name, org.apache.commons.dbcp2.managed.BasicManagedDataSource dataSource) void
createAlias
(String name, DataSource ds) org.apache.commons.dbcp2.managed.BasicManagedDataSource
createPooledDataSource
(Map<String, String> properties, boolean noSharing) <T> T
getDataSource
(String name, Class<T> type, boolean noSharing) void
registerPooledDataSource
(String name, Map<String, String> properties) void
removeAlias
(String name) protected void
-
Field Details
-
dataSources
-
dataSourcesNoSharing
-
-
Constructor Details
-
PooledDataSourceRegistry
public PooledDataSourceRegistry()
-
-
Method Details
-
getDataSource
-
registerPooledDataSource
-
createPooledDataSource
-
clear
public void clear()Clears theDataSource
contained in this registry.This will close the
Connection
contained in theBasicManagedDataSource
pool. -
unregisterPooledDataSource
-
closeDataSource
protected void closeDataSource(String name, org.apache.commons.dbcp2.managed.BasicManagedDataSource dataSource) -
createAlias
-
removeAlias
-