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 Modifier and Type Class Description protected classAbstractDataSourceService.AS7DataSourceDeployer
-
Field Summary
Fields Modifier and Type Field Description protected org.jboss.jca.deployers.common.CommonDeploymentdeploymentMDstatic org.jboss.msc.service.ServiceNameSERVICE_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.protected org.jboss.msc.value.InjectedValue<org.jboss.jca.core.spi.transaction.TransactionIntegration>transactionIntegrationValue
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractDataSourceService(String dsName, ContextNames.BindInfo jndiName, ClassLoader classLoader)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected StringbuildConfigPropsString(Map<String,String> configProps)org.jboss.msc.inject.Injector<org.jboss.jca.core.api.connectionmanager.ccm.CachedConnectionManager>getCcmInjector()org.jboss.msc.value.InjectedValue<org.wildfly.common.function.ExceptionSupplier<org.wildfly.security.credential.source.CredentialSource,Exception>>getCredentialSourceSupplierInjector()protected abstract AbstractDataSourceService.AS7DataSourceDeployergetDeployer()org.jboss.jca.deployers.common.CommonDeploymentgetDeploymentMD()org.jboss.msc.inject.Injector<Driver>getDriverInjector()org.jboss.msc.inject.Injector<DriverRegistry>getDriverRegistryInjector()org.jboss.msc.inject.Injector<ExecutorService>getExecutorServiceInjector()org.jboss.msc.inject.Injector<org.jboss.jca.core.api.management.ManagementRepository>getManagementRepositoryInjector()org.jboss.msc.inject.Injector<org.jboss.jca.core.spi.mdr.MetadataRepository>getMdrInjector()org.jboss.msc.inject.Injector<org.jboss.jca.core.spi.rar.ResourceAdapterRepository>getRaRepositoryInjector()org.jboss.msc.value.InjectedValue<org.wildfly.common.function.ExceptionSupplier<org.wildfly.security.credential.source.CredentialSource,Exception>>getRecoveryCredentialSourceSupplierInjector()static org.jboss.msc.service.ServiceNamegetServiceName(ContextNames.BindInfo bindInfo)org.jboss.msc.inject.Injector<org.jboss.security.SubjectFactory>getSubjectFactoryInjector()protected org.jboss.jca.core.spi.transaction.TransactionIntegrationgetTransactionIntegration()org.jboss.msc.inject.Injector<org.jboss.jca.core.spi.transaction.TransactionIntegration>getTransactionIntegrationInjector()DataSourcegetValue()voidstart(org.jboss.msc.service.StartContext startContext)voidstop(org.jboss.msc.service.StopContext stopContext)protected voidstopService()Performs the actual work of stopping the service.
-
-
-
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 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 Detail
-
AbstractDataSourceService
protected AbstractDataSourceService(String dsName, ContextNames.BindInfo jndiName, ClassLoader classLoader)
-
-
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:
startin interfaceorg.jboss.msc.Service- Specified by:
startin interfaceorg.jboss.msc.service.Service<DataSource>- 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- Specified by:
stopin interfaceorg.jboss.msc.service.Service<DataSource>
-
stopService
protected void stopService()
Performs the actual work of stopping the service. Should be called bystop(org.jboss.msc.service.StopContext)asynchronously from the MSC thread that invoked stop.
-
getDeploymentMD
public org.jboss.jca.deployers.common.CommonDeployment getDeploymentMD()
-
getValue
public DataSource getValue() throws IllegalStateException, IllegalArgumentException
- 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
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()
-
getTransactionIntegration
protected org.jboss.jca.core.spi.transaction.TransactionIntegration getTransactionIntegration()
-
-