T
- type of listener this event dispatches to.public abstract class RepositoryEvent<T extends RepositoryListener>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private Repository |
repository |
Constructor and Description |
---|
RepositoryEvent() |
Modifier and Type | Method and Description |
---|---|
abstract void |
dispatch(T listener)
Dispatch this event to the given listener.
|
abstract java.lang.Class<T> |
getListenerType()
Get type of listener this event dispatches to
|
Repository |
getRepository()
Get the repository that was changed
|
void |
setRepository(Repository r)
Set the repository this event occurred on.
|
java.lang.String |
toString() |
private Repository repository
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 java.lang.Class<T> getListenerType()
public abstract void dispatch(T listener)
listener
- listener that wants this event.public java.lang.String toString()
toString
in class java.lang.Object