Class DfsConfig
java.lang.Object
org.eclipse.jgit.lib.Config
org.eclipse.jgit.lib.StoredConfig
org.eclipse.jgit.internal.storage.dfs.DfsConfig
Config implementation used by DFS repositories.
The current implementation acts as if there is no persistent storage: loading simply clears the config, and saving does nothing.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jgit.lib.Config
Config.ConfigEnum, Config.SectionParser<T>
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.eclipse.jgit.lib.StoredConfig
clear
Methods inherited from class org.eclipse.jgit.lib.Config
addChangeListener, fireConfigChangedEvent, fromText, get, getBaseConfig, getBoolean, getBoolean, getEnum, getEnum, getInt, getInt, getIntInRange, getIntInRange, getLong, getLong, getNames, getNames, getNames, getNames, getPath, getRefSpecs, getSections, getString, getStringList, getSubsections, getTimeUnit, isMissing, isUtf8, notifyUponTransientChanges, readIncludedConfig, setBoolean, setEnum, setInt, setLong, setString, setStringList, setTypedConfigGetter, toText, uncache, unset, unsetSection
-
Constructor Details
-
DfsConfig
public DfsConfig()
-
-
Method Details
-
load
Load the configuration from the persistent store.If the configuration does not exist, this configuration is cleared, and thus behaves the same as though the backing store exists, but is empty.
- Specified by:
load
in classStoredConfig
- Throws:
IOException
- the configuration could not be read (but does exist).ConfigInvalidException
- the configuration is not properly formatted.
-
save
Save the configuration to the persistent store.- Specified by:
save
in classStoredConfig
- Throws:
IOException
- the configuration could not be written.
-