Class DataSourceDefinitionService
java.lang.Object
org.wildfly.extension.datasources.agroal.deployment.DataSourceDefinitionService
- All Implemented Interfaces:
ContextListAndJndiViewManagedReferenceFactory,ContextListManagedReferenceFactory,JndiViewManagedReferenceFactory,ManagedReferenceFactory,org.jboss.msc.Service,org.jboss.msc.service.Service<ManagedReferenceFactory>,org.jboss.msc.value.Value<ManagedReferenceFactory>
public class DataSourceDefinitionService
extends Object
implements org.jboss.msc.service.Service<ManagedReferenceFactory>, ContextListAndJndiViewManagedReferenceFactory
Defines an extension to provide DataSources based on the Agroal project
- Author:
- Luis Barreiro
-
Field Summary
Fields inherited from interface org.jboss.as.naming.ContextListManagedReferenceFactory
DEFAULT_INSTANCE_CLASS_NAMEFields inherited from interface org.jboss.as.naming.JndiViewManagedReferenceFactory
DEFAULT_JNDI_VIEW_INSTANCE_VALUEFields inherited from interface org.jboss.msc.service.Service
NULL -
Constructor Summary
ConstructorsConstructorDescriptionDataSourceDefinitionService(ContextNames.BindInfo bindInfo, boolean transactional, io.agroal.api.configuration.supplier.AgroalDataSourceConfigurationSupplier dataSourceConfiguration, Supplier<jakarta.transaction.TransactionSynchronizationRegistry> tsrSupplier) -
Method Summary
-
Constructor Details
-
DataSourceDefinitionService
public DataSourceDefinitionService(ContextNames.BindInfo bindInfo, boolean transactional, io.agroal.api.configuration.supplier.AgroalDataSourceConfigurationSupplier dataSourceConfiguration, Supplier<jakarta.transaction.TransactionSynchronizationRegistry> tsrSupplier)
-
-
Method Details
-
getInstanceClassName
- Specified by:
getInstanceClassNamein interfaceContextListManagedReferenceFactory
-
getJndiViewInstanceValue
- Specified by:
getJndiViewInstanceValuein interfaceJndiViewManagedReferenceFactory
-
start
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException - Specified by:
startin interfaceorg.jboss.msc.Service- Throws:
org.jboss.msc.service.StartException
-
stop
public void stop(org.jboss.msc.service.StopContext context) - Specified by:
stopin interfaceorg.jboss.msc.Service
-
getValue
- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<ManagedReferenceFactory>- Throws:
IllegalStateExceptionIllegalArgumentException
-
getReference
- Specified by:
getReferencein interfaceManagedReferenceFactory
-