public class DataSourceService extends Object implements org.jboss.msc.service.Service<io.agroal.api.AgroalDataSource>, Supplier<io.agroal.api.AgroalDataSource>
| Constructor and Description |
|---|
DataSourceService(String dataSourceName,
String jndiName,
boolean jta,
boolean connectable,
boolean xa,
io.agroal.api.configuration.supplier.AgroalDataSourceConfigurationSupplier dataSourceConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
io.agroal.api.AgroalDataSource |
get() |
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.AgroalDataSource |
getValue() |
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
public void start(org.jboss.msc.service.StartContext context)
throws org.jboss.msc.service.StartException
start in interface org.jboss.msc.Serviceorg.jboss.msc.service.StartExceptionpublic void stop(org.jboss.msc.service.StopContext context)
stop in interface org.jboss.msc.Servicepublic io.agroal.api.AgroalDataSource getValue()
throws IllegalStateException,
IllegalArgumentException
getValue in interface org.jboss.msc.value.Value<io.agroal.api.AgroalDataSource>IllegalStateExceptionIllegalArgumentExceptionpublic io.agroal.api.AgroalDataSource get()
public org.jboss.msc.value.InjectedValue<Class> getDriverInjector()
public org.jboss.msc.value.InjectedValue<org.wildfly.security.auth.client.AuthenticationContext> getAuthenticationContextInjector()
public org.jboss.msc.value.InjectedValue<org.wildfly.common.function.ExceptionSupplier<org.wildfly.security.credential.source.CredentialSource,Exception>> getCredentialSourceSupplierInjector()
Copyright © 2021 JBoss by Red Hat. All rights reserved.