|
||||||||||
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 |
|
Event<T> |
select(java.lang.annotation.Annotation... bindings)
Returns a child Event with the additional specified bindings. |
|
|
select(java.lang.Class<U> subtype,
java.lang.annotation.Annotation... bindings)
Returns a child Event of the type specified and additional specified bindings. |
|
|
select(TypeLiteral<U> subtype,
java.lang.annotation.Annotation... bindings)
Returns a child Event of the type specified and additional specified bindings. |
Method Detail |
---|
void fire(T event)
event
- the event typeEvent<T> select(java.lang.annotation.Annotation... bindings)
bindings
- Additional bindings to add to child Event
<U extends T> Event<U> select(java.lang.Class<U> subtype, java.lang.annotation.Annotation... bindings)
U
- The subtype of T for the child Eventsubtype
- The class of the subtype of Tbindings
- Additional specified bindings
<U extends T> Event<U> select(TypeLiteral<U> subtype, java.lang.annotation.Annotation... bindings)
U
- The subtype of T for the child Eventsubtype
- The TypeLiteral of the subtype of Tbindings
- Additional specified bindings
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |