Class SharedPoolDataSourceFactory
java.lang.Object
org.apache.commons.jcs3.auxiliary.disk.jdbc.dsfactory.SharedPoolDataSourceFactory
- All Implemented Interfaces:
- DataSourceFactory
A factory that looks up the DataSource using the JDBC2 pool methods.
 Borrowed and adapted from Apache DB Torque
- 
Field SummaryFields inherited from interface org.apache.commons.jcs3.auxiliary.disk.jdbc.dsfactory.DataSourceFactoryDSFACTORY_KEY, FACTORY_KEY
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()Closes the pool associated with this factory and releases it.getName()voidinitialize(JDBCDiskCacheAttributes config) Initialize the factory.
- 
Constructor Details- 
SharedPoolDataSourceFactorypublic SharedPoolDataSourceFactory()
 
- 
- 
Method Details- 
getName- Specified by:
- getNamein interface- DataSourceFactory
- Returns:
- the name of the factory.
 
- 
getDataSource- Specified by:
- getDataSourcein interface- DataSourceFactory
- Returns:
- the DataSourceconfigured by the factory.
- See Also:
 
- 
initializeDescription copied from interface:DataSourceFactoryInitialize the factory.- Specified by:
- initializein interface- DataSourceFactory
- Parameters:
- config- the factory settings
- Throws:
- SQLException- Any exceptions caught during processing will be rethrown wrapped into a SQLException.
- See Also:
 
- 
closeCloses the pool associated with this factory and releases it.- Specified by:
- closein interface- DataSourceFactory
- Throws:
- SQLException- if the pool cannot be closed properly
 
 
-