org.apache.commons.dbcp.datasources
Class PerUserPoolDataSourceFactory

java.lang.Object
  extended byorg.apache.commons.dbcp.datasources.InstanceKeyObjectFactory
      extended byorg.apache.commons.dbcp.datasources.PerUserPoolDataSourceFactory
All Implemented Interfaces:
ObjectFactory

public class PerUserPoolDataSourceFactory
extends org.apache.commons.dbcp.datasources.InstanceKeyObjectFactory

A JNDI ObjectFactory which creates SharedPoolDataSources

Version:
$Revision: 1.4 $ $Date: 2004/02/28 12:18:17 $

Constructor Summary
PerUserPoolDataSourceFactory()
           
 
Method Summary
static void closeAll()
          Close all pools associated with this class.
 Object getObjectInstance(Object refObj, Name name, Context context, Hashtable env)
          implements ObjectFactory to create an instance of SharedPoolDataSource or PerUserPoolDataSource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PerUserPoolDataSourceFactory

public PerUserPoolDataSourceFactory()
Method Detail

closeAll

public static void closeAll()
                     throws Exception
Close all pools associated with this class.

Throws:
Exception

getObjectInstance

public Object getObjectInstance(Object refObj,
                                Name name,
                                Context context,
                                Hashtable env)
                         throws IOException,
                                ClassNotFoundException
implements ObjectFactory to create an instance of SharedPoolDataSource or PerUserPoolDataSource

Specified by:
getObjectInstance in interface ObjectFactory
Throws:
IOException
ClassNotFoundException


Copyright © 2001-2003 Apache Software Foundation. Documenation generated October 18 2004.