Class AbstractDataSourceService
java.lang.Object
org.jboss.as.connector.subsystems.datasources.AbstractDataSourceService
- All Implemented Interfaces:
org.jboss.msc.Service,org.jboss.msc.service.Service<DataSource>,org.jboss.msc.value.Value<DataSource>
- Direct Known Subclasses:
LocalDataSourceService,XaDataSourceService
public abstract class AbstractDataSourceService
extends Object
implements org.jboss.msc.service.Service<DataSource>
Base service for managing a data-source.
- Author:
- John Bailey, maeste
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.jboss.jca.deployers.common.CommonDeploymentstatic final org.jboss.msc.service.ServiceNameConsumers outside of the data-source subsystem should use the capabilityorg.wildfly.data-sourcewhere the dynamic name is the resource name in the model.protected final org.jboss.msc.value.InjectedValue<org.jboss.jca.core.spi.transaction.TransactionIntegration>Fields inherited from interface org.jboss.msc.service.Service
NULL -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractDataSourceService(String dsName, ContextNames.BindInfo jndiName, ClassLoader classLoader) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringbuildConfigPropsString(Map<String, String> configProps) org.jboss.msc.inject.Injector<org.jboss.jca.core.api.connectionmanager.ccm.CachedConnectionManager>org.jboss.msc.value.InjectedValue<org.wildfly.common.function.ExceptionSupplier<org.wildfly.security.credential.source.CredentialSource,Exception>> protected abstract AbstractDataSourceService.AS7DataSourceDeployerorg.jboss.jca.deployers.common.CommonDeploymentorg.jboss.msc.inject.Injector<Driver>org.jboss.msc.inject.Injector<DriverRegistry>org.jboss.msc.inject.Injector<ExecutorService>org.jboss.msc.inject.Injector<org.jboss.jca.core.api.management.ManagementRepository>org.jboss.msc.inject.Injector<org.jboss.jca.core.spi.mdr.MetadataRepository>org.jboss.msc.inject.Injector<org.jboss.jca.core.spi.rar.ResourceAdapterRepository>org.jboss.msc.value.InjectedValue<org.wildfly.common.function.ExceptionSupplier<org.wildfly.security.credential.source.CredentialSource,Exception>> static org.jboss.msc.service.ServiceNamegetServiceName(ContextNames.BindInfo bindInfo) protected org.jboss.jca.core.spi.transaction.TransactionIntegrationorg.jboss.msc.inject.Injector<org.jboss.jca.core.spi.transaction.TransactionIntegration>getValue()voidstart(org.jboss.msc.service.StartContext startContext) voidstop(org.jboss.msc.service.StopContext stopContext) protected voidPerforms the actual work of stopping the service.
-
Field Details
-
SERVICE_NAME_BASE
public static final org.jboss.msc.service.ServiceName SERVICE_NAME_BASEConsumers outside of the data-source subsystem should use the capabilityorg.wildfly.data-sourcewhere the dynamic name is the resource name in the model. -
transactionIntegrationValue
protected final org.jboss.msc.value.InjectedValue<org.jboss.jca.core.spi.transaction.TransactionIntegration> transactionIntegrationValue -
deploymentMD
protected org.jboss.jca.deployers.common.CommonDeployment deploymentMD
-
-
Constructor Details
-
AbstractDataSourceService
protected AbstractDataSourceService(String dsName, ContextNames.BindInfo jndiName, ClassLoader classLoader)
-
-
Method Details
-
getServiceName
-
start
public void start(org.jboss.msc.service.StartContext startContext) throws org.jboss.msc.service.StartException - Specified by:
startin interfaceorg.jboss.msc.Service- Throws:
org.jboss.msc.service.StartException
-
getDeployer
protected abstract AbstractDataSourceService.AS7DataSourceDeployer getDeployer() throws org.jboss.jca.common.api.validator.ValidateException- Throws:
org.jboss.jca.common.api.validator.ValidateException
-
stop
public void stop(org.jboss.msc.service.StopContext stopContext) - Specified by:
stopin interfaceorg.jboss.msc.Service
-
stopService
protected void stopService()Performs the actual work of stopping the service. Should be called bystop(StopContext)asynchronously from the MSC thread that invoked stop. -
getDeploymentMD
public org.jboss.jca.deployers.common.CommonDeployment getDeploymentMD() -
getValue
- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<DataSource>- Throws:
IllegalStateExceptionIllegalArgumentException
-
getTransactionIntegrationInjector
public org.jboss.msc.inject.Injector<org.jboss.jca.core.spi.transaction.TransactionIntegration> getTransactionIntegrationInjector() -
getDriverInjector
-
getManagementRepositoryInjector
public org.jboss.msc.inject.Injector<org.jboss.jca.core.api.management.ManagementRepository> getManagementRepositoryInjector() -
getDriverRegistryInjector
-
getCcmInjector
public org.jboss.msc.inject.Injector<org.jboss.jca.core.api.connectionmanager.ccm.CachedConnectionManager> getCcmInjector() -
getExecutorServiceInjector
-
getMdrInjector
public org.jboss.msc.inject.Injector<org.jboss.jca.core.spi.mdr.MetadataRepository> getMdrInjector() -
getRaRepositoryInjector
public org.jboss.msc.inject.Injector<org.jboss.jca.core.spi.rar.ResourceAdapterRepository> getRaRepositoryInjector() -
getCredentialSourceSupplierInjector
public org.jboss.msc.value.InjectedValue<org.wildfly.common.function.ExceptionSupplier<org.wildfly.security.credential.source.CredentialSource,Exception>> getCredentialSourceSupplierInjector() -
getRecoveryCredentialSourceSupplierInjector
public org.jboss.msc.value.InjectedValue<org.wildfly.common.function.ExceptionSupplier<org.wildfly.security.credential.source.CredentialSource,Exception>> getRecoveryCredentialSourceSupplierInjector() -
buildConfigPropsString
-
getTransactionIntegration
protected org.jboss.jca.core.spi.transaction.TransactionIntegration getTransactionIntegration()
-