content: /*
   * DazzleConf
   * Copyright © 2025 Anand Beh
   *
   * DazzleConf is free software: you can redistribute it and/or modify
   * it under the terms of the GNU Lesser General Public License as published by
   * the Free Software Foundation, either version 3 of the License, or
   * (at your option) any later version.
   *
   * DazzleConf is distributed in the hope that it will be useful,
   * but WITHOUT ANY WARRANTY; without even the implied warranty of
   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
   * GNU Lesser General Public License for more details.
   *
   * You should have received a copy of the GNU Lesser General Public License
   * along with DazzleConf. If not, see <https://www.gnu.org/licenses/>
   * and navigate to version 3 of the GNU Lesser General Public License.
   */
  
  package space.arim.dazzleconf.engine;
  
  import org.checkerframework.checker.nullness.qual.NonNull;
  import space.arim.dazzleconf.backend.KeyPath;
  
  /**
   * Listener that lets the implementor know when paths were updated.
   * <p>
   * This interface is extended in different parts of the library depending on context. Its sole method,
   * <code>notifyUpdate</code> is often overidden to provide additional documentation.
   */
  public interface UpdateListener {
  
      /**
       * Called when a path is updated, or could be updated.
       *
       * @param entryPath the path of the entry
       * @param updateReason the update reason
       */
      void notifyUpdate(@NonNull KeyPath entryPath, @NonNull UpdateReason updateReason);
  
  }
  