Package liquibase.configuration.core
Class DefaultsFileValueProvider
java.lang.Object
liquibase.configuration.AbstractConfigurationValueProvider
liquibase.configuration.AbstractMapConfigurationValueProvider
liquibase.configuration.core.DefaultsFileValueProvider
- All Implemented Interfaces:
ConfigurationValueProvider
-
Constructor Summary
ModifierConstructorDescriptionDefaultsFileValueProvider
(InputStream stream, String sourceDescription) protected
DefaultsFileValueProvider
(Properties properties) -
Method Summary
Modifier and TypeMethodDescriptionMap<?,
?> getMap()
int
Returns the precedence of values returned by this provider.protected String
protected boolean
keyMatches
(String wantedKey, String storedKey) Used byConfigurationValueProvider.getProvidedValue(String[])
to determine of a given map entry matches the wanted key.void
validate
(CommandScope commandScope) Default implementation does no checkingMethods inherited from class liquibase.configuration.AbstractMapConfigurationValueProvider
getMapHash, getProvidedValue, isValueSet, lookupProvidedValue
-
Constructor Details
-
DefaultsFileValueProvider
-
DefaultsFileValueProvider
- Throws:
IOException
-
DefaultsFileValueProvider
- Throws:
IOException
-
-
Method Details
-
validate
Description copied from class:AbstractConfigurationValueProvider
Default implementation does no checking- Specified by:
validate
in interfaceConfigurationValueProvider
- Overrides:
validate
in classAbstractConfigurationValueProvider
- Throws:
IllegalArgumentException
-
getPrecedence
public int getPrecedence()Description copied from interface:ConfigurationValueProvider
Returns the precedence of values returned by this provider. Higher a provider with higher precedence overrides values from lower precedence providers.
Standard provider precedence:- 400
ScopeValueProvider
- 350
DeprecatedConfigurationValueProvider
- 250 Integration specific providers
- 300: TODO JNDI attributes
- 250: TODO Servlet Context
- 200
SystemPropertyValueProvider
- 150 EnvironmentValueProvider
- 100: TODO profile/context specific properties files
- 50:
DefaultsFileValueProvider
- 400
-
getMap
- Specified by:
getMap
in classAbstractMapConfigurationValueProvider
-
keyMatches
Description copied from class:AbstractMapConfigurationValueProvider
Used byConfigurationValueProvider.getProvidedValue(String[])
to determine of a given map entry matches the wanted key. This implementation compares the values case-insensitively, and will replace camelCase words with kabob-case- Overrides:
keyMatches
in classAbstractMapConfigurationValueProvider
- Parameters:
wantedKey
- the configuration key requestedstoredKey
- the key stored in the map
-
getSourceDescription
- Specified by:
getSourceDescription
in classAbstractMapConfigurationValueProvider
-