public interface Event<T>
class MyBean {
Modifier and Type | Method and Description |
---|---|
void |
fire(T event)
Fires an event with the Event object's bindings.
|
Event<T> |
select(java.lang.annotation.Annotation... qualifiers)
Adds the current set of qualifiers, returning a new Event object.
|
<U extends T> |
select(java.lang.Class<U> subtype,
java.lang.annotation.Annotation... qaualifiers)
Adds the current set of bindings, returning a new Event object.
|
<U extends T> |
select(TypeLiteral<U> subtype,
java.lang.annotation.Annotation... qualifiers)
Adds the current set of qualifiers, returning a new Event object.
|
void fire(T event)
event
- the event to fireEvent<T> select(java.lang.annotation.Annotation... qualifiers)
qualifiers
- the additional qualifiers<U extends T> Event<U> select(java.lang.Class<U> subtype, java.lang.annotation.Annotation... qaualifiers)
subtype
- the restricted typequalifiers
- the additional qualifiers<U extends T> Event<U> select(TypeLiteral<U> subtype, java.lang.annotation.Annotation... qualifiers)
subtype
- the restricted typequalifiers
- the additional qualifiers