public class PerUserPoolDataSourceFactory
extends java.lang.Object
SharedPoolDataSource
sConstructor and Description |
---|
PerUserPoolDataSourceFactory() |
Modifier and Type | Method and Description |
---|---|
static void |
closeAll()
Closes all pools associated with this class.
|
protected static java.lang.Object |
deserialize(byte[] data)
Deserializes the provided byte array to create an object.
|
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 name to test.protected InstanceKeyDataSource getNewInstance(javax.naming.Reference ref) throws java.io.IOException, java.lang.ClassNotFoundException
ref
- The properties to be set on the created DataSourcejava.io.IOException
- If an I/O error occurs during the deserialization of a configuration parameter.java.lang.ClassNotFoundException
- If a class cannot be found during the deserialization of a configuration parameter.public static void closeAll() throws java.lang.Exception
java.lang.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 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.ObjectFactory
java.io.IOException
java.lang.ClassNotFoundException
protected static final java.lang.Object deserialize(byte[] data) throws java.io.IOException, java.lang.ClassNotFoundException
data
- Data to deserialize to create the configuration parameter.java.lang.ClassNotFoundException
- If a class cannot be found during the deserialization of a configuration parameter.java.io.IOException
- If an I/O error occurs during the deserialization of a configuration parameter.Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.