|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.dbcp.datasources.SharedPoolDataSourceFactory
public class SharedPoolDataSourceFactory
A JNDI ObjectFactory which creates SharedPoolDataSource
s
Constructor Summary | |
---|---|
SharedPoolDataSourceFactory()
|
Method Summary | |
---|---|
static void |
closeAll()
Close all pools associated with this class. |
protected static Object |
deserialize(byte[] data)
used to set some properties saved within a Reference |
protected InstanceKeyDataSource |
getNewInstance(Reference ref)
Creates an instance of the subclass and sets any properties contained in the Reference. |
Object |
getObjectInstance(Object refObj,
Name name,
Context context,
Hashtable env)
implements ObjectFactory to create an instance of SharedPoolDataSource or PerUserPoolDataSource |
protected boolean |
isCorrectClass(String className)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SharedPoolDataSourceFactory()
Method Detail |
---|
protected boolean isCorrectClass(String className)
protected InstanceKeyDataSource getNewInstance(Reference ref)
public static void closeAll() throws Exception
Exception
public Object getObjectInstance(Object refObj, Name name, Context context, Hashtable env) throws IOException, ClassNotFoundException
getObjectInstance
in interface ObjectFactory
IOException
ClassNotFoundException
protected static final Object deserialize(byte[] data) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |