private static 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, toString
addChangeListener, fireConfigChangedEvent, fromText, get, getBoolean, getBoolean, getEnum, getEnum, getInt, getInt, getLong, getLong, getNames, getNames, getNames, getNames, getRefSpecs, getSections, getString, getStringList, getSubsections, getTimeUnit, isMissing, isUtf8, setBoolean, setEnum, setInt, setLong, setString, setStringList, setTypedConfigGetter, toText, uncache, unset, unsetSection
private MockConfig(java.io.File cfgLocation, FS fs)
public void load() throws java.io.IOException, ConfigInvalidException
FileBasedConfig
If 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 FileBasedConfig
java.io.IOException
- the configuration could not be read (but does exist).ConfigInvalidException
- the configuration is not properly formatted.public boolean isOutdated()
FileBasedConfig
isOutdated
in class FileBasedConfig