Package io.quarkus.datasource.runtime
Interface DataSourceRuntimeConfig
public interface DataSourceRuntimeConfig
-
Method Summary
Modifier and TypeMethodDescriptionactive()Whether this datasource should be active at runtime.Optional<@WithConverter(io.quarkus.runtime.configuration.TrimmedStringConverter.class) String>The credentials provider nameOptional<@WithConverter(io.quarkus.runtime.configuration.TrimmedStringConverter.class) String>The credentials provider bean name.password()The datasource passwordusername()The datasource username
-
Method Details
-
active
Whether this datasource should be active at runtime. See xref:datasource.adoc#datasource-active[this section of the documentation]. -
username
The datasource username -
password
The datasource password -
credentialsProvider
Optional<@WithConverter(io.quarkus.runtime.configuration.TrimmedStringConverter.class) String> credentialsProvider()The credentials provider name -
credentialsProviderName
Optional<@WithConverter(io.quarkus.runtime.configuration.TrimmedStringConverter.class) String> credentialsProviderName()The credentials provider bean name.This is a bean name (as in
@Named) of a bean that implementsCredentialsProvider. It is used to select the credentials provider bean when multiple exist. This is unnecessary when there is only one credentials provider available.For Vault, the credentials provider bean name is
vault-credentials-provider.
-