Class PerUserPoolDataSourceFactory
- java.lang.Object
-
- org.apache.commons.dbcp2.datasources.PerUserPoolDataSourceFactory
-
- All Implemented Interfaces:
javax.naming.spi.ObjectFactory
public class PerUserPoolDataSourceFactory extends java.lang.ObjectA JNDI ObjectFactory which createsSharedPoolDataSources- Since:
- 2.0
- Version:
- $Id: PerUserPoolDataSourceFactory.java 1649430 2015-01-04 21:29:32Z tn $
-
-
Constructor Summary
Constructors Constructor Description PerUserPoolDataSourceFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidcloseAll()Close all pools associated with this class.java.lang.ObjectgetObjectInstance(java.lang.Object refObj, javax.naming.Name name, javax.naming.Context context, java.util.Hashtable<?,?> env)implements ObjectFactory to create an instance of SharedPoolDataSource or PerUserPoolDataSource
-
-
-
Method Detail
-
closeAll
public static void closeAll() throws java.lang.ExceptionClose all pools associated with this class.- Throws:
java.lang.Exception
-
getObjectInstance
public java.lang.Object getObjectInstance(java.lang.Object refObj, javax.naming.Name name, javax.naming.Context context, java.util.Hashtable<?,?> env) throws java.io.IOException, java.lang.ClassNotFoundExceptionimplements ObjectFactory to create an instance of SharedPoolDataSource or PerUserPoolDataSource- Specified by:
getObjectInstancein interfacejavax.naming.spi.ObjectFactory- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
-