Package org.eclipse.jgit.events
Class RepositoryEvent<T extends RepositoryListener>
java.lang.Object
org.eclipse.jgit.events.RepositoryEvent<T>
- Type Parameters:
T
- type of listener this event dispatches to.
- Direct Known Subclasses:
BeforeDfsPackIndexLoadedEvent
,ConfigChangedEvent
,DfsPacksChangedEvent
,IndexChangedEvent
,RefsChangedEvent
,WorkingTreeModifiedEvent
Describes a modification made to a repository.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
Dispatch this event to the given listener.Get type of listener this event dispatches toGet the repository that was changedvoid
Set the repository this event occurred on.toString()
-
Field Details
-
repository
-
-
Constructor Details
-
RepositoryEvent
public RepositoryEvent()
-
-
Method Details
-
setRepository
Set the repository this event occurred on.This method should only be invoked once on each event object, and is automatically set by
Repository.fireEvent(RepositoryEvent)
.- Parameters:
r
- the repository.
-
getRepository
Get the repository that was changed- Returns:
- the repository that was changed
-
getListenerType
Get type of listener this event dispatches to- Returns:
- type of listener this event dispatches to
-
dispatch
Dispatch this event to the given listener.- Parameters:
listener
- listener that wants this event.
-
toString
-