ProvidedValues to return the overall value returned from the collection of ConfigurationValueProviders.
Returned by LiquibaseConfiguration#getCurrentConfiguredValue(ConfigurationValueConverter, ConfigurationValueObfuscator, String...)
| Modifier and Type | Class and Description |
|---|---|
| private static class | ConfiguredValue.
Used to track configuration with no value set |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private static final ConfiguredValue. | |
| private final List | |
| private final ConfigurationValueConverter | |
| private final ConfigurationValueObfuscator |
| Access | Constructor and Description |
|---|---|
| protected | ConfiguredValue(String key, ConfigurationValueConverter<DataType> converter, ConfigurationValueObfuscator<DataType> obfuscator)
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public ProvidedValue | |
| public List | |
| public DataType | |
| public DataType | |
| public void | |
| public void | |
| public boolean |
| key | back to summary |
|---|---|
| private final String key | |
| NO_VALUE_PROVIDER | back to summary |
|---|---|
| private static final ConfiguredValue. | |
| providedValues | back to summary |
|---|---|
| private final List<ProvidedValue> providedValues | |
| valueConverter | back to summary |
|---|---|
| private final ConfigurationValueConverter<DataType> valueConverter | |
| valueObfuscator | back to summary |
|---|---|
| private final ConfigurationValueObfuscator<DataType> valueObfuscator | |
| ConfiguredValue | back to summary |
|---|---|
| protected ConfiguredValue(String key, ConfigurationValueConverter<DataType> converter, ConfigurationValueObfuscator<DataType> obfuscator) | |
| found | back to summary |
|---|---|
public boolean found()
| |
| getProvidedValue | back to summary |
|---|---|
| public ProvidedValue getProvidedValue() Returns the "winning" value across all the possible
| |
| getProvidedValues | back to summary |
|---|---|
public List
| |
| getValue | back to summary |
|---|---|
| public DataType getValue() | |
| getValueObfuscated | back to summary |
|---|---|
| public DataType getValueObfuscated() | |
| override | back to summary |
|---|---|
| public void override(ProvidedValue details) Replaces the current configured value with a higher-precedence one. If a null value is passed, do nothing. | |
| override | back to summary |
|---|---|
| public void override(Object newValue, String sourceDescription) Modifies the current configured value. If a new provider is overriding the old value, use | |
| wasDefaultValueUsed | back to summary |
|---|---|
| public boolean wasDefaultValueUsed() Return true if a default value was the "winning" value
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | getPrecedence()
Implements liquibase. Returns the precedence of values returned by this provider. |
| public ProvidedValue | getProvidedValue(String...
an array of keys to check, where the first element is the canonical key name, any aliases for that key as later elements. keyAndAliases)Implements liquibase. Lookup the given key(s) in this source. |
| NoValueProvider | back to summary |
|---|---|
| private NoValueProvider() | |
| getPrecedence | back to summary |
|---|---|
| public int getPrecedence() Implements liquibase. Doc from liquibase. Returns the precedence of values returned by this provider. Higher a provider with higher precedence overrides values from lower precedence providers.
| |
| getProvidedValue | back to summary |
|---|---|
| public ProvidedValue getProvidedValue(String... keyAndAliases) Implements liquibase. Doc from liquibase. Lookup the given key(s) in this source. It is up to the implementation to provide any "smoothing" or translation of key names. For example, an EnvironmentValueProvider will look check environment variables containing _'s rather than .'s.
| |