Package org.cyclos.bootstrap
Interface DataSourceProvider
-
- All Superinterfaces:
CustomBean
- All Known Implementing Classes:
C3P0DataSourceProvider,JndiDataSourceProvider
public interface DataSourceProvider extends CustomBean
Provider for the application'sDataSource
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DataSourcecreate(Properties properties)Create a newDataSourceusing the given configuration propertiesvoiddestroy(DataSource dataSource)Destroy the givenDataSource, releasing resources
-
-
-
Method Detail
-
create
DataSource create(Properties properties) throws Exception
Create a newDataSourceusing the given configuration properties- Throws:
Exception
-
destroy
void destroy(DataSource dataSource) throws Exception
Destroy the givenDataSource, releasing resources- Throws:
Exception
-
-