Top Description Fields Constructors Methods
org.eclipse.jgit.internal.storage.dfs

public Class BeforeDfsPackIndexLoadedEvent

extends RepositoryEvent<BeforeDfsPackIndexLoadedListener>
Class Inheritance
Imports
org.eclipse.jgit.events.RepositoryEvent

Describes the org.eclipse.jgit.internal.storage.dfs.DfsPackFile just before its index is loaded. Currently, DfsPackFile directly dispatches the event on org.eclipse.jgit.lib.Repository#getGlobalListenerList. Which means the call to getRepository will always return null.

Field Summary

Modifier and TypeField and Description
private final DfsPackFile

Constructor Summary

AccessConstructor and Description
public
BeforeDfsPackIndexLoadedEvent(DfsPackFile
the pack
pack
)

A new event triggered before a PackFile index is loaded.

Method Summary

Modifier and TypeMethod and Description
public void
dispatch(BeforeDfsPackIndexLoadedListener
listener that wants this event.
listener
)

Implements abstract org.eclipse.jgit.events.RepositoryEvent.dispatch.

Dispatch this event to the given listener.

public Class<BeforeDfsPackIndexLoadedListener>
getListenerType()

Implements abstract org.eclipse.jgit.events.RepositoryEvent.getListenerType.

Get type of listener this event dispatches to

public DfsPackFile

Returns:

the PackFile containing the index that will be loaded.
getPackFile
()

Get the PackFile containing the index that will be loaded.

Inherited from org.eclipse.jgit.events.RepositoryEvent:
getRepositorysetRepositorytoString

Field Detail

packback to summary
private final DfsPackFile pack

Constructor Detail

BeforeDfsPackIndexLoadedEventback to summary
public BeforeDfsPackIndexLoadedEvent(DfsPackFile pack)

A new event triggered before a PackFile index is loaded.

Parameters
pack:DfsPackFile

the pack

Method Detail

dispatchback to summary
public void dispatch(BeforeDfsPackIndexLoadedListener listener)

Implements abstract org.eclipse.jgit.events.RepositoryEvent.dispatch.

Doc from org.eclipse.jgit.events.RepositoryEvent.dispatch.

Dispatch this event to the given listener.

Parameters
listener:BeforeDfsPackIndexLoadedListener

listener that wants this event.

Annotations
@Override
getListenerTypeback to summary
public Class<BeforeDfsPackIndexLoadedListener> getListenerType()

Implements abstract org.eclipse.jgit.events.RepositoryEvent.getListenerType.

Doc from org.eclipse.jgit.events.RepositoryEvent.getListenerType.

Get type of listener this event dispatches to

Returns:Class<BeforeDfsPackIndexLoadedListener>

type of listener this event dispatches to

Annotations
@Override
getPackFileback to summary
public DfsPackFile getPackFile()

Get the PackFile containing the index that will be loaded.

Returns:DfsPackFile

the PackFile containing the index that will be loaded.