public abstract class AbstractDataSourceServiceImporterMixin<PooledDataSourceType extends DataSource> extends Object implements ServiceImporter<DataSource>, DataSourceServiceImporterActivation
DataSourceServiceImporterActivation.Activator| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOGGER |
protected UnitOfWorkFactory |
uowf |
| Constructor and Description |
|---|
AbstractDataSourceServiceImporterMixin() |
| Modifier and Type | Method and Description |
|---|---|
DataSource |
importService(ImportedServiceDescriptor importedServiceDescriptor)
Imports an instance of the service type described in the service descriptor.
|
boolean |
isAvailable(DataSource instance)
Ask if the service is available or not.
|
protected abstract void |
passivateDataSourcePool(PooledDataSourceType dataSourcePool) |
void |
passivateDataSourceService() |
protected abstract PooledDataSourceType |
setupDataSourcePool(DataSourceConfiguration configuration) |
protected static final org.slf4j.Logger LOGGER
@Structure protected UnitOfWorkFactory uowf
public AbstractDataSourceServiceImporterMixin()
public final void passivateDataSourceService()
throws Exception
passivateDataSourceService in interface DataSourceServiceImporterActivationExceptionpublic final DataSource importService(ImportedServiceDescriptor importedServiceDescriptor) throws ServiceImporterException
ServiceImporterimportService in interface ServiceImporter<DataSource>importedServiceDescriptor - The service descriptor.ServiceImporterException - if import failed.public final boolean isAvailable(DataSource instance)
ServiceImporterisAvailable in interface ServiceImporter<DataSource>instance - the instance to be checkedprotected abstract PooledDataSourceType setupDataSourcePool(DataSourceConfiguration configuration) throws Exception
Exceptionprotected abstract void passivateDataSourcePool(PooledDataSourceType dataSourcePool) throws Exception
Exception