T
- type of listener this event dispatches to.BeforeDfsPackIndexLoadedEvent
, ConfigChangedEvent
, DfsPacksChangedEvent
, IndexChangedEvent
, RefsChangedEvent
public abstract class RepositoryEvent<T extends RepositoryListener> extends Object
Constructor | Description |
---|---|
RepositoryEvent() |
Modifier and Type | Method | Description |
---|---|---|
abstract void |
dispatch(T listener) |
Dispatch this event to the given listener.
|
abstract Class<T> |
getListenerType() |
|
Repository |
getRepository() |
|
void |
setRepository(Repository r) |
Set the repository this event occurred on.
|
String |
toString() |
public void setRepository(Repository r)
This method should only be invoked once on each event object, and is
automatically set by Repository.fireEvent(RepositoryEvent)
.
r
- the repository.public Repository getRepository()
public abstract Class<T> getListenerType()
public abstract void dispatch(T listener)
listener
- listener that wants this event.Copyright © 2018. All rights reserved.