javax.naming.spi.ObjectFactorypublic class PerUserPoolDataSourceFactory
extends java.lang.Object
SharedPoolDataSources| Constructor | Description |
|---|---|
PerUserPoolDataSourceFactory() |
| Modifier and Type | Method | Description |
|---|---|---|
static void |
closeAll() |
Close all pools associated with this class.
|
protected static java.lang.Object |
deserialize(byte[] data) |
Used to set some properties saved within a Reference.
|
protected InstanceKeyDataSource |
getNewInstance(javax.naming.Reference ref) |
Creates an instance of the subclass and sets any properties
contained in the Reference.
|
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.
|
protected boolean |
isCorrectClass(java.lang.String className) |
protected boolean isCorrectClass(java.lang.String className)
className - The class nameprotected InstanceKeyDataSource getNewInstance(javax.naming.Reference ref) throws java.io.IOException, java.lang.ClassNotFoundException
ref - The referencejava.io.IOException - IO errorjava.lang.ClassNotFoundException - Couldn't load data source implementationpublic static void closeAll()
throws java.lang.Exception
java.lang.Exception - Close exceptionpublic 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
getObjectInstance in interface javax.naming.spi.ObjectFactoryjava.io.IOExceptionjava.lang.ClassNotFoundExceptionprotected static final java.lang.Object deserialize(byte[] data)
throws java.io.IOException,
java.lang.ClassNotFoundException
data - Object datajava.io.IOException - Stream errorjava.lang.ClassNotFoundException - Couldn't load object classCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.