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 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.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionA new event triggered before a PackFile index is loaded. -
Method Summary
Modifier and TypeMethodDescriptionvoiddispatch(BeforeDfsPackIndexLoadedListener listener) Dispatch this event to the given listener.Get type of listener this event dispatches toGet the PackFile containing the index that will be loaded.Methods inherited from class org.eclipse.jgit.events.RepositoryEvent
getRepository, setRepository, toString
-
Field Details
-
pack
-
-
Constructor Details
-
BeforeDfsPackIndexLoadedEvent
A new event triggered before a PackFile index is loaded.- Parameters:
pack- the pack
-
-
Method Details
-
getPackFile
Get the PackFile containing the index that will be loaded.- Returns:
- the PackFile containing the index that will be loaded.
-
getListenerType
Get type of listener this event dispatches to- Specified by:
getListenerTypein classRepositoryEvent<BeforeDfsPackIndexLoadedListener>- Returns:
- type of listener this event dispatches to
-
dispatch
Dispatch this event to the given listener.- Specified by:
dispatchin classRepositoryEvent<BeforeDfsPackIndexLoadedListener>- Parameters:
listener- listener that wants this event.
-