org.apache.commons.dbcp.datasources
Class SharedPoolDataSourceFactory

java.lang.Object
  extended by org.apache.commons.dbcp.datasources.SharedPoolDataSourceFactory
All Implemented Interfaces:
ObjectFactory

public class SharedPoolDataSourceFactory
extends Object

A JNDI ObjectFactory which creates SharedPoolDataSources

Version:
$Revision: 479137 $ $Date: 2006-11-25 10:51:48 -0500 (Sat, 25 Nov 2006) $

Constructor Summary
SharedPoolDataSourceFactory()
           
 
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

SharedPoolDataSourceFactory

public SharedPoolDataSourceFactory()
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-2004 Apache Software Foundation. Documenation generated April 18 2013.