public abstract class StoredConfig extends Config
Config.ConfigEnum, Config.SectionParser<T>
Constructor and Description |
---|
StoredConfig()
Create a configuration with no default fallback.
|
StoredConfig(Config defaultConfig)
Create an empty configuration with a fallback for missing keys.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear the configuration file
|
abstract void |
load()
Load the configuration from the persistent store.
|
abstract void |
save()
Save the configuration to the persistent store.
|
addChangeListener, fireConfigChangedEvent, fromText, get, getBaseConfig, getBoolean, getBoolean, getEnum, getEnum, getInt, getInt, getLong, getLong, getNames, getNames, getNames, getNames, getRefSpecs, getSections, getString, getStringList, getSubsections, getTimeUnit, isMissing, isUtf8, notifyUponTransientChanges, readIncludedConfig, setBoolean, setEnum, setInt, setLong, setString, setStringList, setTypedConfigGetter, toText, uncache, unset, unsetSection
public StoredConfig()
public StoredConfig(Config defaultConfig)
defaultConfig
- the base configuration to be consulted when a key is missing
from this configuration instance.public abstract void load() throws IOException, ConfigInvalidException
If the configuration does not exist, this configuration is cleared, and thus behaves the same as though the backing store exists, but is empty.
IOException
- the configuration could not be read (but does exist).ConfigInvalidException
- the configuration is not properly formatted.public abstract void save() throws IOException
IOException
- the configuration could not be written.Copyright © 2019 Eclipse JGit Project. All rights reserved.