Package org.cyclos.bootstrap
Class C3P0DataSourceProvider
- java.lang.Object
-
- org.cyclos.bootstrap.C3P0DataSourceProvider
-
- All Implemented Interfaces:
DataSourceProvider,CustomBean
public class C3P0DataSourceProvider extends Object implements DataSourceProvider
ADataSourceProviderwhich uses C3P0
-
-
Constructor Summary
Constructors Constructor Description C3P0DataSourceProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataSourcecreate(Properties properties)Create a newDataSourceusing the given configuration propertiesvoiddestroy()voiddestroy(DataSource dataSource)Destroy the givenDataSource, releasing resources
-
-
-
Method Detail
-
create
public DataSource create(Properties properties) throws Exception
Description copied from interface:DataSourceProviderCreate a newDataSourceusing the given configuration properties- Specified by:
createin interfaceDataSourceProvider- Throws:
Exception
-
destroy
@PreDestroy public void destroy()
-
destroy
public void destroy(DataSource dataSource) throws Exception
Description copied from interface:DataSourceProviderDestroy the givenDataSource, releasing resources- Specified by:
destroyin interfaceDataSourceProvider- Throws:
Exception
-
-