public class PerUserPoolDataSourceFactory extends Object
SharedPoolDataSource
sConstructor and Description |
---|
PerUserPoolDataSourceFactory() |
Modifier and Type | Method and Description |
---|---|
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) |
protected boolean isCorrectClass(String className)
className
- The class nameprotected InstanceKeyDataSource getNewInstance(Reference ref) throws IOException, ClassNotFoundException
ref
- The referenceIOException
- IO errorClassNotFoundException
- Couldn't load data source implementationpublic static void closeAll() throws Exception
Exception
- Close exceptionpublic 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
data
- Object dataIOException
- Stream errorClassNotFoundException
- Couldn't load object classCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.