T
- The listener type.public abstract class Event<T> extends Object
EventFactory
Constructor and Description |
---|
Event() |
Modifier and Type | Method and Description |
---|---|
T |
invoker()
Returns the invoker instance.
|
abstract void |
register(T listener)
Register a listener to the event.
|
protected T invoker
public final T invoker()
An "invoker" is an object which hides multiple registered listeners of type T under one instance of type T, executing them and leaving early as necessary.
public abstract void register(T listener)
listener
- The desired listener.