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

All Implemented Interfaces:
    ObjectFactory

JNDI object factory that creates an instance of BasicDataSource that has been configured based on the RefAddr values of the specified Reference, which must match the names and data types of the BasicDataSource bean properties.

Method from org.apache.commons.dbcp.BasicDataSourceFactory Summary:
createDataSource,   getObjectInstance
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.dbcp.BasicDataSourceFactory Detail:
 public static DataSource createDataSource(Properties properties) throws Exception 
    Creates and configures a BasicDataSource instance based on the given properties.
 public Object getObjectInstance(Object obj,
    Name name,
    Context nameCtx,
    Hashtable environment) throws Exception 

    Create and return a new BasicDataSource instance. If no instance can be created, return null instead.