Class 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 Detail

      • 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
    • Method Detail

      • 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
        Specified by:
        start in interface org.jboss.msc.service.Service<DataSource>
        Throws:
        org.jboss.msc.service.StartException
      • stop

        public void stop​(org.jboss.msc.service.StopContext stopContext)
        Specified by:
        stop in interface org.jboss.msc.Service
        Specified by:
        stop in interface org.jboss.msc.service.Service<DataSource>
      • stopService

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

        public org.jboss.jca.deployers.common.CommonDeployment getDeploymentMD()
      • 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()
      • getSubjectFactoryInjector

        public org.jboss.msc.inject.Injector<org.jboss.security.SubjectFactory> getSubjectFactoryInjector()
      • 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()