Class DataSourceService
- java.lang.Object
-
- org.wildfly.extension.datasources.agroal.DataSourceService
-
- All Implemented Interfaces:
Supplier<io.agroal.api.AgroalDataSource>,org.jboss.msc.Service,org.jboss.msc.service.Service<io.agroal.api.AgroalDataSource>,org.jboss.msc.value.Value<io.agroal.api.AgroalDataSource>
public class DataSourceService extends Object implements org.jboss.msc.service.Service<io.agroal.api.AgroalDataSource>, Supplier<io.agroal.api.AgroalDataSource>
Defines an extension to provide DataSources based on the Agroal project- Author:
- Luis Barreiro
-
-
Constructor Summary
Constructors Constructor Description DataSourceService(String dataSourceName, String jndiName, boolean jta, boolean connectable, boolean xa, io.agroal.api.configuration.supplier.AgroalDataSourceConfigurationSupplier dataSourceConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.agroal.api.AgroalDataSourceget()org.jboss.msc.value.InjectedValue<org.wildfly.security.auth.client.AuthenticationContext>getAuthenticationContextInjector()org.jboss.msc.value.InjectedValue<org.wildfly.common.function.ExceptionSupplier<org.wildfly.security.credential.source.CredentialSource,Exception>>getCredentialSourceSupplierInjector()org.jboss.msc.value.InjectedValue<Class>getDriverInjector()io.agroal.api.AgroalDataSourcegetValue()voidstart(org.jboss.msc.service.StartContext context)voidstop(org.jboss.msc.service.StopContext context)
-
-
-
Method Detail
-
start
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException- Specified by:
startin interfaceorg.jboss.msc.Service- Specified by:
startin interfaceorg.jboss.msc.service.Service<io.agroal.api.AgroalDataSource>- Throws:
org.jboss.msc.service.StartException
-
stop
public void stop(org.jboss.msc.service.StopContext context)
- Specified by:
stopin interfaceorg.jboss.msc.Service- Specified by:
stopin interfaceorg.jboss.msc.service.Service<io.agroal.api.AgroalDataSource>
-
getValue
public io.agroal.api.AgroalDataSource getValue() throws IllegalStateException, IllegalArgumentException- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<io.agroal.api.AgroalDataSource>- Throws:
IllegalStateExceptionIllegalArgumentException
-
get
public io.agroal.api.AgroalDataSource get()
-
getDriverInjector
public org.jboss.msc.value.InjectedValue<Class> getDriverInjector()
-
getAuthenticationContextInjector
public org.jboss.msc.value.InjectedValue<org.wildfly.security.auth.client.AuthenticationContext> getAuthenticationContextInjector()
-
getCredentialSourceSupplierInjector
public org.jboss.msc.value.InjectedValue<org.wildfly.common.function.ExceptionSupplier<org.wildfly.security.credential.source.CredentialSource,Exception>> getCredentialSourceSupplierInjector()
-
-