javax.enterprise.event
Interface Event<T>

All Known Implementing Classes:
EventImpl

public interface Event<T>

Injectable interface providing simplified access to the event system.

 class MyBean {


Method Summary
 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>
Event<U>
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>
Event<U>
select(TypeLiteral<U> subtype, java.lang.annotation.Annotation... qualifiers)
          Adds the current set of qualifiers, returning a new Event object.
 

Method Detail

fire

void fire(T event)
Fires an event with the Event object's bindings.

Parameters:
event - the event to fire

select

Event<T> select(java.lang.annotation.Annotation... qualifiers)
Adds the current set of qualifiers, returning a new Event object.

Parameters:
qualifiers - the additional qualifiers

select

<U extends T> Event<U> select(java.lang.Class<U> subtype,
                              java.lang.annotation.Annotation... qaualifiers)
Adds the current set of bindings, returning a new Event object.

Parameters:
subtype - the restricted type
qualifiers - the additional qualifiers

select

<U extends T> Event<U> select(TypeLiteral<U> subtype,
                              java.lang.annotation.Annotation... qualifiers)
Adds the current set of qualifiers, returning a new Event object.

Parameters:
subtype - the restricted type
qualifiers - the additional qualifiers