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_NAME
-
Fields inherited from interface org.jboss.as.naming.JndiViewManagedReferenceFactory
DEFAULT_JNDI_VIEW_INSTANCE_VALUE
-
-
Constructor Summary
Constructors Constructor Description DataSourceDefinitionService(ContextNames.BindInfo bindInfo, boolean transactional, io.agroal.api.configuration.supplier.AgroalDataSourceConfigurationSupplier dataSourceConfiguration, Supplier<jakarta.transaction.TransactionSynchronizationRegistry> tsrSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetInstanceClassName()StringgetJndiViewInstanceValue()ManagedReferencegetReference()ManagedReferenceFactorygetValue()voidstart(org.jboss.msc.service.StartContext context)voidstop(org.jboss.msc.service.StopContext context)
-
-
-
Constructor Detail
-
DataSourceDefinitionService
public DataSourceDefinitionService(ContextNames.BindInfo bindInfo, boolean transactional, io.agroal.api.configuration.supplier.AgroalDataSourceConfigurationSupplier dataSourceConfiguration, Supplier<jakarta.transaction.TransactionSynchronizationRegistry> tsrSupplier)
-
-
Method Detail
-
getInstanceClassName
public String getInstanceClassName()
- Specified by:
getInstanceClassNamein interfaceContextListManagedReferenceFactory
-
getJndiViewInstanceValue
public String 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
public ManagedReferenceFactory getValue() throws IllegalStateException, IllegalArgumentException
- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<ManagedReferenceFactory>- Throws:
IllegalStateExceptionIllegalArgumentException
-
getReference
public ManagedReference getReference()
- Specified by:
getReferencein interfaceManagedReferenceFactory
-
-