public class PerUserPoolDataSourceFactory extends Object
SharedPoolDataSources| Constructor 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)
Deserializes the provided byte array to create an object. 
 | 
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)
className - The class name to test.protected InstanceKeyDataSource getNewInstance(Reference ref) throws IOException, ClassNotFoundException
ref - The properties to be set on the created DataSourceIOException - If an I/O error occurs during the deserialization of a configuration parameter.ClassNotFoundException - If a class cannot be found during the deserialization of a configuration parameter.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(), 
ListExceptionpublic Object getObjectInstance(Object refObj, Name name, Context context, Hashtable<?,?> env) throws IOException, ClassNotFoundException
getObjectInstance in interface ObjectFactoryIOExceptionClassNotFoundExceptionprotected static final Object deserialize(byte[] data) throws IOException, ClassNotFoundException
data - Data to deserialize to create the configuration parameter.ClassNotFoundException - If a class cannot be found during the deserialization of a configuration parameter.IOException - If an I/O error occurs during the deserialization of a configuration parameter.Copyright © 2001–2018 The Apache Software Foundation. All rights reserved.