Top Fields Constructors Methods
liquibase.integration.servlet

public Class ServletConfigurationValueProvider

extends AbstractConfigurationValueProvider
Class Inheritance
Imports
liquibase.configuration.AbstractConfigurationValueProvider, .ProvidedValue, javax.naming.Context, .InitialContext, .NamingException

Field Summary

Modifier and TypeField and Description
private final InitialContext
private static final String
private final GenericServletWrapper.ServletContext

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
getPrecedence()

Implements liquibase.configuration.ConfigurationValueProvider.getPrecedence.

Returns the precedence of values returned by this provider.

public ProvidedValue
getProvidedValue(String...
an array of keys to check, where the first element is the canonical key name, any aliases for that key as later elements.
keyAndAliases
)

Implements liquibase.configuration.ConfigurationValueProvider.getProvidedValue.

Try to read the value that is stored by the given key from

  • JNDI
  • the servlet context's init parameters
  • system properties
Inherited from liquibase.configuration.AbstractConfigurationValueProvider:
validate

Field Detail

initialContextback to summary
private final InitialContext initialContext
JAVA_COMP_ENVback to summary
private static final String JAVA_COMP_ENV
servletContextback to summary
private final GenericServletWrapper.ServletContext servletContext

Constructor Detail

ServletConfigurationValueProviderback to summary
public ServletConfigurationValueProvider(GenericServletWrapper.ServletContext servletContext, InitialContext initialContext)

Method Detail

getPrecedenceback to summary
public int getPrecedence()

Implements liquibase.configuration.ConfigurationValueProvider.getPrecedence.

Doc from liquibase.configuration.ConfigurationValueProvider.getPrecedence.

Returns the precedence of values returned by this provider. Higher a provider with higher precedence overrides values from lower precedence providers.

Standard provider precedence:

Annotations
@Override
getProvidedValueback to summary
public ProvidedValue getProvidedValue(String... keyAndAliases)

Implements liquibase.configuration.ConfigurationValueProvider.getProvidedValue.

Try to read the value that is stored by the given key from

  • JNDI
  • the servlet context's init parameters
  • system properties
Parameters
keyAndAliases:String[]

Doc from liquibase.configuration.ConfigurationValueProvider.getProvidedValue.

an array of keys to check, where the first element is the canonical key name, any aliases for that key as later elements.

Returns:ProvidedValue

Doc from liquibase.configuration.ConfigurationValueProvider.getProvidedValue.

null if the key is not defined in this provider.

Annotations
@Override