private final class MockSystemReader.MockConfig extends FileBasedConfig
Config.ConfigEnum, Config.SectionParser<T>| Modifier | Constructor and Description |
|---|---|
private |
MockConfig(java.io.File cfgLocation,
FS fs) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isOutdated()
Whether the currently loaded configuration file is outdated
|
void |
load()
Load the configuration from the persistent store.
|
clear, getFile, notifyUponTransientChanges, readIncludedConfig, save, toStringaddChangeListener, fireConfigChangedEvent, fromText, get, getBoolean, getBoolean, getEnum, getEnum, getInt, getInt, getLong, getLong, getNames, getNames, getNames, getNames, getRefSpecs, getSections, getString, getStringList, getSubsections, getTimeUnit, isUtf8, setBoolean, setEnum, setInt, setLong, setString, setStringList, setTypedConfigGetter, toText, uncache, unset, unsetSectionprivate MockConfig(java.io.File cfgLocation,
FS fs)
public void load()
throws java.io.IOException,
ConfigInvalidException
FileBasedConfigIf the configuration does not exist, this configuration is cleared, and thus behaves the same as though the backing store exists, but is empty.
Load the configuration as a Git text style configuration file.
If the file does not exist, this configuration is cleared, and thus behaves the same as though the file exists, but is empty.
load in class FileBasedConfigjava.io.IOException - the configuration could not be read (but does exist).ConfigInvalidException - the configuration is not properly formatted.public boolean isOutdated()
FileBasedConfigisOutdated in class FileBasedConfig