DfsConfig.java

  1. /*
  2.  * Copyright (C) 2011, Google Inc. and others
  3.  *
  4.  * This program and the accompanying materials are made available under the
  5.  * terms of the Eclipse Distribution License v. 1.0 which is available at
  6.  * https://www.eclipse.org/org/documents/edl-v10.php.
  7.  *
  8.  * SPDX-License-Identifier: BSD-3-Clause
  9.  */

  10. package org.eclipse.jgit.internal.storage.dfs;

  11. import java.io.IOException;

  12. import org.eclipse.jgit.errors.ConfigInvalidException;
  13. import org.eclipse.jgit.lib.StoredConfig;

  14. /**
  15.  * Config implementation used by DFS repositories.
  16.  * <p>
  17.  * The current implementation acts as if there is no persistent storage: loading
  18.  * simply clears the config, and saving does nothing.
  19.  */
  20. public final class DfsConfig extends StoredConfig {
  21.     /** {@inheritDoc} */
  22.     @Override
  23.     public void load() throws IOException, ConfigInvalidException {
  24.         clear();
  25.     }

  26.     /** {@inheritDoc} */
  27.     @Override
  28.     public void save() throws IOException {
  29.         // TODO actually store this configuration.
  30.     }
  31. }