View Javadoc
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  
11  package org.eclipse.jgit.internal.storage.dfs;
12  
13  import org.eclipse.jgit.events.RepositoryEvent;
14  
15  /**
16   * Describes a change to the list of packs in a
17   * {@link org.eclipse.jgit.internal.storage.dfs.DfsRepository}.
18   */
19  public class DfsPacksChangedEvent
20  		extends RepositoryEvent<DfsPacksChangedListener> {
21  	/** {@inheritDoc} */
22  	@Override
23  	public Class<DfsPacksChangedListener> getListenerType() {
24  		return DfsPacksChangedListener.class;
25  	}
26  
27  	/** {@inheritDoc} */
28  	@Override
29  	public void dispatch(DfsPacksChangedListener listener) {
30  		listener.onPacksChanged(this);
31  	}
32  }