org.apache.torque.dsfactory
Class PerUserPoolDataSourceFactory

java.lang.Object
  extended byorg.apache.torque.dsfactory.AbstractDataSourceFactory
      extended byorg.apache.torque.dsfactory.PerUserPoolDataSourceFactory
All Implemented Interfaces:
DataSourceFactory

public class PerUserPoolDataSourceFactory
extends AbstractDataSourceFactory
implements DataSourceFactory

A factory that looks up the DataSource using the JDBC2 pool methods.

Version:
$Id: PerUserPoolDataSourceFactory.java,v 1.1.2.2 2004/05/20 04:35:14 seade Exp $
Author:
John McNally, Henning P. Schmiedehausen

Field Summary
 
Fields inherited from class org.apache.torque.dsfactory.AbstractDataSourceFactory
CONNECTION_KEY, DEFAULT_CONNECTION_KEY, DEFAULT_POOL_KEY, POOL_KEY
 
Constructor Summary
PerUserPoolDataSourceFactory()
           
 
Method Summary
 javax.sql.DataSource getDataSource()
           
 void initialize(org.apache.commons.configuration.Configuration configuration)
          Initialize the factory.
 
Methods inherited from class org.apache.torque.dsfactory.AbstractDataSourceFactory
applyConfiguration, initCPDS, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PerUserPoolDataSourceFactory

public PerUserPoolDataSourceFactory()
Method Detail

getDataSource

public javax.sql.DataSource getDataSource()
Specified by:
getDataSource in interface DataSourceFactory
Returns:
the DataSource configured by the factory.
See Also:
DataSourceFactory.getDataSource()

initialize

public void initialize(org.apache.commons.configuration.Configuration configuration)
                throws TorqueException
Description copied from interface: DataSourceFactory
Initialize the factory.

Specified by:
initialize in interface DataSourceFactory
Parameters:
configuration - where to load the factory settings from
Throws:
TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
See Also:
DataSourceFactory.initialize(org.apache.commons.configuration.Configuration)


Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.