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
  • Field Details

    • SERVICE_NAME_BASE

      public static final org.jboss.msc.service.ServiceName SERVICE_NAME_BASE
      Consumers outside of the data-source subsystem should use the capability org.wildfly.data-source where 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

  • Method Details

    • getServiceName

      public static org.jboss.msc.service.ServiceName getServiceName(ContextNames.BindInfo bindInfo)
    • start

      public void start(org.jboss.msc.service.StartContext startContext) throws org.jboss.msc.service.StartException
      Specified by:
      start in interface org.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:
      stop in interface org.jboss.msc.Service
    • stopService

      protected void stopService()
      Performs the actual work of stopping the service. Should be called by stop(StopContext) asynchronously from the MSC thread that invoked stop.
    • getDeploymentMD

      public org.jboss.jca.deployers.common.CommonDeployment getDeploymentMD()
    • getValue

      Specified by:
      getValue in interface org.jboss.msc.value.Value<DataSource>
      Throws:
      IllegalStateException
      IllegalArgumentException
    • getTransactionIntegrationInjector

      public org.jboss.msc.inject.Injector<org.jboss.jca.core.spi.transaction.TransactionIntegration> getTransactionIntegrationInjector()
    • getDriverInjector

      public org.jboss.msc.inject.Injector<Driver> getDriverInjector()
    • getManagementRepositoryInjector

      public org.jboss.msc.inject.Injector<org.jboss.jca.core.api.management.ManagementRepository> getManagementRepositoryInjector()
    • getDriverRegistryInjector

      public org.jboss.msc.inject.Injector<DriverRegistry> getDriverRegistryInjector()
    • getCcmInjector

      public org.jboss.msc.inject.Injector<org.jboss.jca.core.api.connectionmanager.ccm.CachedConnectionManager> getCcmInjector()
    • getExecutorServiceInjector

      public org.jboss.msc.inject.Injector<ExecutorService> 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

      protected String buildConfigPropsString(Map<String,String> configProps)
    • getTransactionIntegration

      protected org.jboss.jca.core.spi.transaction.TransactionIntegration getTransactionIntegration()