Class DfsConfig
- java.lang.Object
-
- org.eclipse.jgit.lib.Config
-
- org.eclipse.jgit.lib.StoredConfig
-
- org.eclipse.jgit.internal.storage.dfs.DfsConfig
-
public final class DfsConfig extends StoredConfig
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 Constructor Description DfsConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
load()
Load the configuration from the persistent store.void
save()
Save the configuration to the persistent store.-
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
-
-
-
-
Method Detail
-
load
public void load() throws IOException, ConfigInvalidException
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
public void save() throws IOException
Save the configuration to the persistent store.- Specified by:
save
in classStoredConfig
- Throws:
IOException
- the configuration could not be written.
-
-