Because this class focuses on raw/untyped access to what is actually configured, it is usually best to interact with ConfigurationDefinition instances
which provide type safety, standardized key naming, default values, and more.
"Registered" configuration definitions will be available for generated help.
This class will search through the configured ConfigurationValueProviders. Standard value providers are auto-loaded on startup, but more can be added/removed at runtime.
| Modifier and Type | Field and Description |
|---|---|
| private final SortedSet | |
| private final SortedSet | |
| private final Map | lastLoggedKeyValues
Track looked up values we have logged to avoid infinite loops between this and the log system using configurations and to limit logged messages. |
| public static final String |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public <T extends ConfigurationContainer> T | |
| public <DataType> ConfiguredValue | getCurrentConfiguredValue(ConfigurationValueConverter<DataType> converter, ConfigurationValueObfuscator<DataType> obfuscator, String... keyAndAliases)
Convenience method for |
| public <DataType> ConfiguredValue | Returns: the value for the key, or null if not configured.additional additionalValueProviders, String... ConfigurationValueProviders to use with higher priority than the ones registered in LiquibaseConfiguration. The higher the array index, the higher the priority. Can be null.The first element should be the canonical key name, with later elements being aliases. At least one element must be provided. keyAndAliases)Searches for the given keys in the current providers and applies any applicable modifiers. |
| public static LiquibaseConfiguration | |
| public SortedSet | |
| public ConfigurationDefinition | Returns: the registeredConfigurationDefinition associated with this key. Null if none match.
|
| public SortedSet | getRegisteredDefinitions(boolean
if true, include includeInternal)ConfigurationDefinition#isInternal() definitions.Returns all registered |
| public void | |
| public void | registerDefinition(ConfigurationDefinition<?> definition)
Registers a |
| public void | registerProvider(ConfigurationValueProvider valueProvider)
Adds a new |
| public boolean | Returns: true if the provider was removed.Removes a specific |
| public boolean | Returns: true if the given provider was previously registered.Removes the given |
| configurationValueProviders | back to summary |
|---|---|
| private final SortedSet<ConfigurationValueProvider> configurationValueProviders | |
| definitions | back to summary |
|---|---|
| private final SortedSet<ConfigurationDefinition<?>> definitions | |
| lastLoggedKeyValues | back to summary |
|---|---|
| private final Map<String, String> lastLoggedKeyValues Track looked up values we have logged to avoid infinite loops between this and the log system using configurations and to limit logged messages. Only re-log when values changed from the last time they were logged. | |
| REGISTERED_VALUE_PROVIDERS_KEY | back to summary |
|---|---|
| public static final String REGISTERED_VALUE_PROVIDERS_KEY | |
| LiquibaseConfiguration | back to summary |
|---|---|
| protected LiquibaseConfiguration() | |
| getConfiguration | back to summary |
|---|---|
| public <T extends ConfigurationContainer> T getConfiguration(Class<T> type)
Deprecated use | |
| getCurrentConfiguredValue | back to summary |
|---|---|
| public <DataType> ConfiguredValue Convenience method for | |
| getCurrentConfiguredValue | back to summary |
|---|---|
| public <DataType> ConfiguredValue Searches for the given keys in the current providers and applies any applicable modifiers.
| |
| getInstance | back to summary |
|---|---|
| public static LiquibaseConfiguration getInstance()
Deprecated | |
| getProviders | back to summary |
|---|---|
| public SortedSet | |
| getRegisteredDefinition | back to summary |
|---|---|
public ConfigurationDefinition
| |
| getRegisteredDefinitions | back to summary |
|---|---|
| public SortedSet Returns all registered
| |
| init | back to summary |
|---|---|
| public void init(Scope scope) Finishes configuration of this service. Called as the root scope is set up, should not be called elsewhere. | |
| registerDefinition | back to summary |
|---|---|
| public void registerDefinition(ConfigurationDefinition<?> definition) Registers a | |
| registerProvider | back to summary |
|---|---|
| public void registerProvider(ConfigurationValueProvider valueProvider) Adds a new | |
| removeProvider | back to summary |
|---|---|
| public boolean removeProvider(ConfigurationValueProvider provider) Removes a specific
| |
| unregisterProvider | back to summary |
|---|---|
| public boolean unregisterProvider(ConfigurationValueProvider valueProvider) Removes the given
| |