Top Description Fields Constructors Methods
org.eclipse.jgit.events

public abstract Class RepositoryEvent<T extends RepositoryListener>

extends Object
Class Inheritance
Known Direct Subclasses
org.eclipse.jgit.events.WorkingTreeModifiedEvent, org.eclipse.jgit.internal.storage.dfs.BeforeDfsPackIndexLoadedEvent, org.eclipse.jgit.internal.storage.dfs.DfsPacksChangedEvent, org.eclipse.jgit.events.ConfigChangedEvent, org.eclipse.jgit.events.IndexChangedEvent, org.eclipse.jgit.events.RefsChangedEvent
Type Parameters
<T>
type of listener this event dispatches to.
Imports
org.eclipse.jgit.lib.Repository

Describes a modification made to a repository.

Field Summary

Modifier and TypeField and Description
private Repository

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Dispatch this event to the given listener.

public abstract Class<T>

Returns:

type of listener this event dispatches to
getListenerType
()

Get type of listener this event dispatches to

public Repository

Returns:

the repository that was changed
getRepository
()

Get the repository that was changed

public void
setRepository(Repository
the repository.
r
)

Set the repository this event occurred on.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

repositoryback to summary
private Repository repository

Constructor Detail

RepositoryEventback to summary
public RepositoryEvent()

Method Detail

dispatchback to summary
public abstract void dispatch(T listener)

Dispatch this event to the given listener.

Parameters
listener:T

listener that wants this event.

getListenerTypeback to summary
public abstract Class<T> getListenerType()

Get type of listener this event dispatches to

Returns:Class<T>

type of listener this event dispatches to

getRepositoryback to summary
public Repository getRepository()

Get the repository that was changed

Returns:Repository

the repository that was changed

setRepositoryback to summary
public void setRepository(Repository r)

Set the repository this event occurred on.

This method should only be invoked once on each event object, and is automatically set by org.eclipse.jgit.lib.Repository#fireEvent(RepositoryEvent).

Parameters
r:Repository

the repository.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@SuppressWarnings:nls
@Override