|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the type of the event objectpublic interface Event<T>
An interface for firing events of a particular type, and registering observers for events of that type.
| Method Summary | ||
|---|---|---|
void |
fire(T event)
Fire an event |
|
void |
fire(T event,
java.lang.annotation.Annotation... bindings)
Deprecated. |
|
void |
observe(Observer<T> observer,
java.lang.annotation.Annotation... bindings)
Deprecated. |
|
|
select(java.lang.annotation.Annotation... bindings)
|
|
|
select(java.lang.Class<U> subtype,
java.lang.annotation.Annotation... bindings)
|
|
|
select(TypeLiteral<U> subtype,
java.lang.annotation.Annotation... bindings)
|
|
| Method Detail |
|---|
@Deprecated
void fire(T event,
java.lang.annotation.Annotation... bindings)
event - the event typebindings - the event bindingsvoid fire(T event)
event - the event type<U extends T> Event<U> select(java.lang.annotation.Annotation... bindings)
<U extends T> Event<U> select(java.lang.Class<U> subtype,
java.lang.annotation.Annotation... bindings)
<U extends T> Event<U> select(TypeLiteral<U> subtype,
java.lang.annotation.Annotation... bindings)
@Deprecated
void observe(Observer<T> observer,
java.lang.annotation.Annotation... bindings)
observer - the observer to registerbindings - the bindings to observe the event for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||