Class PerUserPoolDataSourceFactory
- java.lang.Object
-
- org.apache.commons.dbcp.datasources.InstanceKeyObjectFactory
-
- org.apache.commons.dbcp.datasources.PerUserPoolDataSourceFactory
-
- All Implemented Interfaces:
javax.naming.spi.ObjectFactory
public class PerUserPoolDataSourceFactory extends InstanceKeyObjectFactory
A JNDI ObjectFactory which createsSharedPoolDataSource
s- Version:
- $Revision: 479137 $ $Date: 2006-11-25 10:51:48 -0500 (Sat, 25 Nov 2006) $
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
PER_USER_POOL_CLASSNAME
-
Constructor Summary
Constructors Constructor Description PerUserPoolDataSourceFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected InstanceKeyDataSource
getNewInstance(javax.naming.Reference ref)
Creates an instance of the subclass and sets any properties contained in the Reference.protected boolean
isCorrectClass(java.lang.String className)
-
Methods inherited from class org.apache.commons.dbcp.datasources.InstanceKeyObjectFactory
closeAll, deserialize, getObjectInstance, registerNewInstance, removeInstance
-
-
-
-
Method Detail
-
isCorrectClass
protected boolean isCorrectClass(java.lang.String className)
- Specified by:
isCorrectClass
in classInstanceKeyObjectFactory
- Returns:
- true if and only if className is the value returned from getClass().getName().toString()
-
getNewInstance
protected InstanceKeyDataSource getNewInstance(javax.naming.Reference ref) throws java.io.IOException, java.lang.ClassNotFoundException
Description copied from class:InstanceKeyObjectFactory
Creates an instance of the subclass and sets any properties contained in the Reference.- Specified by:
getNewInstance
in classInstanceKeyObjectFactory
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
-