|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.qi4j.library.sql.datasource.DataSourceService.Mixin
public static class DataSourceService.Mixin
Constructor Summary | |
---|---|
DataSourceService.Mixin()
|
Method Summary | |
---|---|
void |
activate()
This is invoked on the service when the instance is being activated |
DataSourceConfiguration |
getConfiguration(String identity)
|
Object |
importService(ImportedServiceDescriptor importedServiceDescriptor)
Imports an instance of the service type described in the service descriptor. |
boolean |
isActive(Object instance)
Ask if the underlying service is currently active or not. |
boolean |
isAvailable(Object instance)
Ask if the service is available or not. |
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 |
Constructor Detail |
---|
public DataSourceService.Mixin()
Method Detail |
---|
public void activate() throws Exception
Activatable
activate
in interface Activatable
Exception
- if service could not be activatedpublic void passivate() throws Exception
Activatable
passivate
in interface Activatable
Exception
- if the service could not be passivatedpublic Object importService(ImportedServiceDescriptor importedServiceDescriptor) throws ServiceImporterException
ServiceImporter
importService
in interface ServiceImporter
importedServiceDescriptor
- The service descriptor.
ServiceImporterException
- if import failed.public DataSourceConfiguration getConfiguration(String identity) throws InstantiationException
InstantiationException
public boolean isActive(Object instance)
ServiceImporter
isActive
in interface ServiceImporter
instance
- the instance to be checked
public boolean isAvailable(Object instance)
ServiceImporter
isAvailable
in interface ServiceImporter
instance
- the instance to be checked
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |