org.apache.torque.dsfactory
Interface DataSourceFactory
- All Known Implementing Classes:
- JndiDataSourceFactory, PerUserPoolDataSourceFactory, SharedPoolDataSourceFactory, TorqueDataSourceFactory
- public interface DataSourceFactory
A factory that returns a DataSource.
- Version:
- $Id: DataSourceFactory.java,v 1.2 2002/09/13 05:06:38 stephenh Exp $
- Author:
- John McNally
Method Summary |
javax.sql.DataSource |
getDataSource()
|
void |
initialize(org.apache.commons.configuration.Configuration configuration)
Initialize the factory. |
getDataSource
public javax.sql.DataSource getDataSource()
throws TorqueException
- Returns:
- the
DataSource
configured by the factory.
- Throws:
TorqueException
- if the source can't be returned
initialize
public void initialize(org.apache.commons.configuration.Configuration configuration)
throws TorqueException
- Initialize the factory.
- Parameters:
configuration
- where to load the factory settings from
- Throws:
TorqueException
- Any exceptions caught during processing will be
rethrown wrapped into a TorqueException.
Copyright © 2000-2003 Apache Software Foundation. All Rights Reserved.