org.qi4j.library.sql.ds
Class DBCPBasicDataSourceServiceMixin
java.lang.Object
org.qi4j.library.sql.ds.DBCPBasicDataSourceServiceMixin
- All Implemented Interfaces:
- Composite, Identity, Activatable, ServiceComposite, DataSourceService, DataSourceServiceComposite
public abstract class DBCPBasicDataSourceServiceMixin
- extends Object
- implements DataSourceServiceComposite
Method Summary |
void |
activate()
This is invoked on the service when the instance is being activated |
org.apache.commons.dbcp.BasicDataSource |
getDataSource()
|
void |
passivate()
This is invoked on the service when the instance is being passivated |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DBCPBasicDataSourceServiceMixin
public DBCPBasicDataSourceServiceMixin()
getDataSource
public org.apache.commons.dbcp.BasicDataSource getDataSource()
- Specified by:
getDataSource
in interface DataSourceService
activate
public void activate()
throws Exception
- Description copied from interface:
Activatable
- This is invoked on the service when the instance is being activated
- Specified by:
activate
in interface Activatable
- Throws:
Exception
- if service could not be activated
passivate
public void passivate()
throws Exception
- Description copied from interface:
Activatable
- This is invoked on the service when the instance is being passivated
- Specified by:
passivate
in interface Activatable
- Throws:
Exception
- if the service could not be passivated