DfsPacksChangedEvent.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 org.eclipse.jgit.events.RepositoryEvent;

  12. /**
  13.  * Describes a change to the list of packs in a
  14.  * {@link org.eclipse.jgit.internal.storage.dfs.DfsRepository}.
  15.  */
  16. public class DfsPacksChangedEvent
  17.         extends RepositoryEvent<DfsPacksChangedListener> {
  18.     /** {@inheritDoc} */
  19.     @Override
  20.     public Class<DfsPacksChangedListener> getListenerType() {
  21.         return DfsPacksChangedListener.class;
  22.     }

  23.     /** {@inheritDoc} */
  24.     @Override
  25.     public void dispatch(DfsPacksChangedListener listener) {
  26.         listener.onPacksChanged(this);
  27.     }
  28. }