liquibase.configuration
Class AbstractConfigurationContainer.ConfigurationContainer

java.lang.Object
  extended by liquibase.configuration.AbstractConfigurationContainer.ConfigurationContainer
Enclosing class:
AbstractConfigurationContainer

protected static class AbstractConfigurationContainer.ConfigurationContainer
extends Object

Like a java.util.Map, but with extra logic for working with ConfigurationProperties. Used to define and hold available properties. Methods return "this" to allow easy chaining.


Constructor Summary
protected AbstractConfigurationContainer.ConfigurationContainer(String namespace)
           
 
Method Summary
 ConfigurationProperty addProperty(String propertyName, Class type)
          Adds a property definition to this configuration.
 ConfigurationProperty getProperty(String propertyName)
          Returns the ConfigurationProperty object with the given name.
<T> T
getValue(String propertyName, Class<T> returnType)
          Returns the value for the given property.
 void setValue(String propertyName, Object value)
          Sets the value for the given property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractConfigurationContainer.ConfigurationContainer

protected AbstractConfigurationContainer.ConfigurationContainer(String namespace)
Method Detail

addProperty

public ConfigurationProperty addProperty(String propertyName,
                                         Class type)
Adds a property definition to this configuration.


getProperty

public ConfigurationProperty getProperty(String propertyName)
Returns the ConfigurationProperty object with the given name. If the property was not defined, an exception is thrown.


getValue

public <T> T getValue(String propertyName,
                      Class<T> returnType)
Returns the value for the given property. If the property was not defined, an exception is thrown.


setValue

public void setValue(String propertyName,
                     Object value)
Sets the value for the given property. Any value set through this method will overwrite any default values found by the configured ConfigurationPropertyProviders. If the property was not defined, an exception is thrown.



Copyright © 2016 Liquibase.org. All rights reserved.