public class PerUserPoolDataSourceFactory extends Object
SharedPoolDataSource
sConstructor and Description |
---|
PerUserPoolDataSourceFactory() |
Modifier and Type | Method and Description |
---|---|
static void |
closeAll()
Closes all pools associated with this class.
|
protected static Object |
deserialize(byte[] data)
Sets 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) |
public PerUserPoolDataSourceFactory()
protected boolean isCorrectClass(String className)
protected InstanceKeyDataSource getNewInstance(Reference ref) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public static void closeAll() throws Exception
Exception
- a ListException
containing all exceptions thrown by InstanceKeyDataSource.close()
ListException
instead of, in 2.3.0 and before, the first exception thrown by
InstanceKeyDataSource.close()
.InstanceKeyDataSource.close()
,
ListException
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
Copyright © 2001–2018 The Apache Software Foundation. All rights reserved.