Package liquibase.integration.servlet
Class ServletConfigurationValueProvider
- java.lang.Object
-
- liquibase.configuration.AbstractConfigurationValueProvider
-
- liquibase.integration.servlet.ServletConfigurationValueProvider
-
- All Implemented Interfaces:
ConfigurationValueProvider
public class ServletConfigurationValueProvider extends AbstractConfigurationValueProvider
-
-
Constructor Summary
Constructors Constructor Description ServletConfigurationValueProvider(liquibase.integration.servlet.GenericServletWrapper.ServletContext servletContext, InitialContext initialContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getPrecedence()
Returns the precedence of values returned by this provider.ProvidedValue
getProvidedValue(String... keyAndAliases)
Try to read the value that is stored by the given key from JNDI the servlet context's init parameters system properties-
Methods inherited from class liquibase.configuration.AbstractConfigurationValueProvider
validate
-
-
-
-
Constructor Detail
-
ServletConfigurationValueProvider
public ServletConfigurationValueProvider(liquibase.integration.servlet.GenericServletWrapper.ServletContext servletContext, InitialContext initialContext)
-
-
Method Detail
-
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
public ProvidedValue getProvidedValue(String... keyAndAliases)
Try to read the value that is stored by the given key from- JNDI
- the servlet context's init parameters
- system properties
- 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.
-
-