Package liquibase.configuration
Class ConfiguredValue<DataType>
java.lang.Object
liquibase.configuration.ConfiguredValue<DataType>
This wraps all the
ProvidedValue
s to return the overall value returned from the collection of ConfigurationValueProvider
s.
Returned by LiquibaseConfiguration.getCurrentConfiguredValue(ConfigurationValueConverter, ConfigurationValueObfuscator, String...)
-
Constructor Summary
ModifierConstructorDescriptionprotected
ConfiguredValue
(String key, ConfigurationValueConverter<DataType> converter, ConfigurationValueObfuscator<DataType> obfuscator) -
Method Summary
Modifier and TypeMethodDescriptionboolean
found()
Returns the "winning" value across all the possibleConfigurationValueProvider
.getValue()
void
Modifies the current configured value.void
override
(ProvidedValue details) Replaces the current configured value with a higher-precedence one.boolean
Return true if a default value was the "winning" value
-
Constructor Details
-
ConfiguredValue
protected ConfiguredValue(String key, ConfigurationValueConverter<DataType> converter, ConfigurationValueObfuscator<DataType> obfuscator)
-
-
Method Details
-
getValue
-
getValueObfuscated
-
getProvidedValue
Returns the "winning" value across all the possibleConfigurationValueProvider
. AProvidedValue
is always returned, even if the value was not configured.- See Also:
-
wasDefaultValueUsed
public boolean wasDefaultValueUsed()Return true if a default value was the "winning" value- Returns:
- boolean
-
override
Replaces the current configured value with a higher-precedence one. If a null value is passed, do nothing. -
override
Modifies the current configured value. If a new provider is overriding the old value, useoverride(ProvidedValue)
. This is for changing the value outside the "provider" infrastructure. -
getProvidedValues
- Returns:
- a full list of where the configuration value was set and/or overridden.
-
found
public boolean found()- Returns:
- true if a value was found across the providers.
-