com.prezi.gradle.pride.RuntimeConfiguration Maven / Gradle / Ivy
package com.prezi.gradle.pride;
import org.apache.commons.configuration.Configuration;
/**
* A configuration stack that contains defaults and overrides alongside the loaded file configurations.
*
* The goal of this class is to maintain a stack of configurations from most-local to most-global.
* The list of configuration is built as follows, in query-order:
*
* - overrides
* - local configuration
* - ...
* - global configuration
* - defaults
*
*/
public interface RuntimeConfiguration extends Configuration {
RuntimeConfiguration withConfiguration(Configuration configuration);
boolean override(String property, Boolean override);
boolean override(String property, boolean overrideEnabled, boolean overrideDisabled);
String override(String property, String override);
}