Class SharedPoolDataSourceFactory
- java.lang.Object
-
- org.apache.commons.dbcp2.datasources.SharedPoolDataSourceFactory
-
- All Implemented Interfaces:
javax.naming.spi.ObjectFactory
public class SharedPoolDataSourceFactory extends java.lang.Object
A JNDI ObjectFactory which createsSharedPoolDataSource
s- Since:
- 2.0
- Version:
- $Id: SharedPoolDataSourceFactory.java 1649430 2015-01-04 21:29:32Z tn $
-
-
Constructor Summary
Constructors Constructor Description SharedPoolDataSourceFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
closeAll()
Close all pools associated with this class.java.lang.Object
getObjectInstance(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.Exception
Close 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.ClassNotFoundException
implements ObjectFactory to create an instance of SharedPoolDataSource or PerUserPoolDataSource- Specified by:
getObjectInstance
in interfacejavax.naming.spi.ObjectFactory
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
-