org.eclipse.jgit.storage.dfs
Class BeforeDfsPackIndexLoadedEvent
java.lang.Object
org.eclipse.jgit.events.RepositoryEvent<BeforeDfsPackIndexLoadedListener>
org.eclipse.jgit.storage.dfs.BeforeDfsPackIndexLoadedEvent
public class BeforeDfsPackIndexLoadedEvent
- extends RepositoryEvent<BeforeDfsPackIndexLoadedListener>
Describes the DfsPackFile
just before its index is loaded. Currently,
DfsPackFile directly dispatches the event on
Repository.getGlobalListenerList()
. Which means
the call to RepositoryEvent.getRepository()
will always return null.
BeforeDfsPackIndexLoadedEvent
public BeforeDfsPackIndexLoadedEvent(DfsPackFile pack)
- A new event triggered before a PackFile index is loaded.
- Parameters:
pack
- the pack
getPackFile
public DfsPackFile getPackFile()
- Returns:
- the PackFile containing the index that will be loaded.
getListenerType
public Class<BeforeDfsPackIndexLoadedListener> getListenerType()
- Specified by:
getListenerType
in class RepositoryEvent<BeforeDfsPackIndexLoadedListener>
- Returns:
- type of listener this event dispatches to.
dispatch
public void dispatch(BeforeDfsPackIndexLoadedListener listener)
- Description copied from class:
RepositoryEvent
- Dispatch this event to the given listener.
- Specified by:
dispatch
in class RepositoryEvent<BeforeDfsPackIndexLoadedListener>
- Parameters:
listener
- listener that wants this event.
Copyright © 2012. All Rights Reserved.