Package liquibase.configuration.core
Class ScopeValueProvider
java.lang.Object
liquibase.configuration.AbstractConfigurationValueProvider
liquibase.configuration.core.ScopeValueProvider
- All Implemented Interfaces:
ConfigurationValueProvider
Searches the
Scope
for the given key.
Does not perform any key smoothing/translating.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the precedence of values returned by this provider.getProvidedValue
(String... keyAndAliases) Lookup the given key(s) in this source.Methods inherited from class liquibase.configuration.AbstractConfigurationValueProvider
validate
-
Constructor Details
-
ScopeValueProvider
public ScopeValueProvider()
-
-
Method Details
-
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
-
getProvidedValue
Description copied from interface:ConfigurationValueProvider
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.- Parameters:
keyAndAliases
- an array of keys to check, where the first element is the canonical key name, any aliases for that key as later elements.- Returns:
- null if the key is not defined in this provider.
-