org.jasig.portal.rdbm.pool
Class DBCPDataSourceFactory

java.lang.Object
  extended by org.jasig.portal.rdbm.pool.DBCPDataSourceFactory
All Implemented Interfaces:
IPooledDataSourceFactory

public final class DBCPDataSourceFactory
extends java.lang.Object
implements IPooledDataSourceFactory

DBCPDataSourceFactory produces an instance of BasicDataSource for the given driver class name, username, password, and URL, defaulting the maxActive, maxIdle, and maxWait properties. This class is final because it is not designed to be subclassed.

Since:
uPortal 2.5
Version:
$Revision: 1.5 $ $Date: 2005/05/17 22:22:39 $
Author:
Eric Dalquist edalquist@unicon.net

Constructor Summary
DBCPDataSourceFactory()
           
 
Method Summary
 javax.sql.DataSource createPooledDataSource(java.lang.String driverClassName, java.lang.String userName, java.lang.String password, java.lang.String url)
          Creates a DataSource that is backed by a connection pool.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBCPDataSourceFactory

public DBCPDataSourceFactory()
Method Detail

createPooledDataSource

public javax.sql.DataSource createPooledDataSource(java.lang.String driverClassName,
                                                   java.lang.String userName,
                                                   java.lang.String password,
                                                   java.lang.String url)
Description copied from interface: IPooledDataSourceFactory
Creates a DataSource that is backed by a connection pool.

Specified by:
createPooledDataSource in interface IPooledDataSourceFactory
Parameters:
driverClassName - The class name of the jdbc driver to use.
userName - The username to connect to the database with.
password - The password to connect to the database with.
url - The url to locate the database with.
Returns:
A DataSource that is backed by a connection pool.