Save This Page
Home » commons-dbcp-1.2.2-src » org.apache.commons » dbcp » datasources » [javadoc | source]
org.apache.commons.dbcp.datasources
abstract class: InstanceKeyObjectFactory [javadoc | source]
java.lang.Object
   org.apache.commons.dbcp.datasources.InstanceKeyObjectFactory

All Implemented Interfaces:
    ObjectFactory

Direct Known Subclasses:
    SharedPoolDataSourceFactory, PerUserPoolDataSourceFactory

A JNDI ObjectFactory which creates SharedPoolDataSources or PerUserPoolDataSources
Method from org.apache.commons.dbcp.datasources.InstanceKeyObjectFactory Summary:
closeAll,   deserialize,   getNewInstance,   getObjectInstance,   isCorrectClass,   registerNewInstance,   removeInstance
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.dbcp.datasources.InstanceKeyObjectFactory Detail:
 public static  void closeAll() throws Exception 
    Close all pools associated with this class.
 protected static final Object deserialize(byte[] data) throws ClassNotFoundException, IOException 
    used to set some properties saved within a Reference
 abstract protected InstanceKeyDataSource getNewInstance(Reference ref) throws ClassNotFoundException, IOException
    Creates an instance of the subclass and sets any properties contained in the Reference.
 public Object getObjectInstance(Object refObj,
    Name name,
    Context context,
    Hashtable env) throws ClassNotFoundException, IOException 
    implements ObjectFactory to create an instance of SharedPoolDataSource or PerUserPoolDataSource
 abstract protected boolean isCorrectClass(String className)
 static synchronized String registerNewInstance(InstanceKeyDataSource ds) 
 static  void removeInstance(String key)