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.

  • Constructor Details

    • DfsConfig

      public DfsConfig()
  • Method Details

    • 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 class StoredConfig
      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 class StoredConfig
      Throws:
      IOException - the configuration could not be written.