public class SharedPool2DataSourceFactory extends AbstractDataSourceFactory
CONNECTION_KEY, DEFAULT_CONNECTION_KEY, DEFAULT_POOL_KEY, DEFAULTS_KEY, POOL_KEYDSFACTORY_KEY, FACTORY_KEY| Constructor and Description |
|---|
SharedPool2DataSourceFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the pool associated with this factory and releases it.
|
DataSource |
getDataSource() |
void |
initialize(org.apache.commons.configuration2.Configuration configuration)
Initialize the factory.
|
applyConfiguration, initCPDS, initJdbc2Pool, setPropertypublic DataSource getDataSource()
getDataSource in interface DataSourceFactorygetDataSource in class AbstractDataSourceFactoryDataSource configured by the factory.DataSourceFactory.getDataSource()public void initialize(org.apache.commons.configuration2.Configuration configuration)
throws TorqueException
AbstractDataSourceFactoryinitialize in interface DataSourceFactoryinitialize in class AbstractDataSourceFactoryconfiguration - where to load the factory settings fromTorqueException - Any exceptions caught during processing will be
rethrown wrapped into a TorqueException.DataSourceFactory.initialize(org.apache.commons.configuration2.Configuration)public void close()
throws TorqueException
TorqueException - if the pool cannot be closed properlyCopyright © 2000–2020 The Apache Software Foundation. All rights reserved.