public abstract class AbstractDataSourceServiceImporterMixin<PooledDataSourceType extends DataSource> extends Object implements org.qi4j.api.service.ServiceImporter<DataSource>, DataSourceServiceImporterActivation
DataSourceServiceImporterActivation.Activator
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOGGER |
protected org.qi4j.api.structure.Module |
module |
Constructor and Description |
---|
AbstractDataSourceServiceImporterMixin() |
Modifier and Type | Method and Description |
---|---|
DataSource |
importService(org.qi4j.api.service.ImportedServiceDescriptor importedServiceDescriptor) |
boolean |
isAvailable(DataSource instance) |
protected abstract void |
passivateDataSourcePool(PooledDataSourceType dataSourcePool) |
void |
passivateDataSourceService() |
protected abstract PooledDataSourceType |
setupDataSourcePool(DataSourceConfigurationValue configuration) |
protected static final org.slf4j.Logger LOGGER
@Structure protected org.qi4j.api.structure.Module module
public AbstractDataSourceServiceImporterMixin()
public final void passivateDataSourceService() throws Exception
passivateDataSourceService
in interface DataSourceServiceImporterActivation
Exception
public final DataSource importService(org.qi4j.api.service.ImportedServiceDescriptor importedServiceDescriptor) throws org.qi4j.api.service.ServiceImporterException
importService
in interface org.qi4j.api.service.ServiceImporter<DataSource>
org.qi4j.api.service.ServiceImporterException
public final boolean isAvailable(DataSource instance)
isAvailable
in interface org.qi4j.api.service.ServiceImporter<DataSource>
protected abstract PooledDataSourceType setupDataSourcePool(DataSourceConfigurationValue configuration) throws Exception
Exception
protected abstract void passivateDataSourcePool(PooledDataSourceType dataSourcePool) throws Exception
Exception