Class BeforeDfsPackIndexLoadedEvent
- java.lang.Object
-
- org.eclipse.jgit.events.RepositoryEvent<BeforeDfsPackIndexLoadedListener>
-
- org.eclipse.jgit.internal.storage.dfs.BeforeDfsPackIndexLoadedEvent
-
public class BeforeDfsPackIndexLoadedEvent extends RepositoryEvent<BeforeDfsPackIndexLoadedListener>
Describes theDfsPackFile
just before its index is loaded. Currently, DfsPackFile directly dispatches the event onRepository.getGlobalListenerList()
. Which means the call toRepositoryEvent.getRepository()
will always return null.
-
-
Constructor Summary
Constructors Constructor Description BeforeDfsPackIndexLoadedEvent(DfsPackFile pack)
A new event triggered before a PackFile index is loaded.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispatch(BeforeDfsPackIndexLoadedListener listener)
Dispatch this event to the given listener.Class<BeforeDfsPackIndexLoadedListener>
getListenerType()
Get type of listener this event dispatches toDfsPackFile
getPackFile()
Get the PackFile containing the index that will be loaded.-
Methods inherited from class org.eclipse.jgit.events.RepositoryEvent
getRepository, setRepository, toString
-
-
-
-
Constructor Detail
-
BeforeDfsPackIndexLoadedEvent
public BeforeDfsPackIndexLoadedEvent(DfsPackFile pack)
A new event triggered before a PackFile index is loaded.- Parameters:
pack
- the pack
-
-
Method Detail
-
getPackFile
public DfsPackFile getPackFile()
Get the PackFile containing the index that will be loaded.- Returns:
- the PackFile containing the index that will be loaded.
-
getListenerType
public Class<BeforeDfsPackIndexLoadedListener> getListenerType()
Get type of listener this event dispatches to- Specified by:
getListenerType
in classRepositoryEvent<BeforeDfsPackIndexLoadedListener>
- Returns:
- type of listener this event dispatches to
-
dispatch
public void dispatch(BeforeDfsPackIndexLoadedListener listener)
Dispatch this event to the given listener.- Specified by:
dispatch
in classRepositoryEvent<BeforeDfsPackIndexLoadedListener>
- Parameters:
listener
- listener that wants this event.
-
-