javax.enterprise.event
Interface Event<T>

Type Parameters:
T - the type of the event object

public interface Event<T>

An interface for firing events of a particular type, and registering observers for events of that type.

Author:
Gavin King, Pete Muir, David Allen

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.
<U extends T>
Event<U>
select(java.lang.Class<U> subtype, java.lang.annotation.Annotation... bindings)
          Returns a child Event of the type specified and additional specified bindings.
<U extends T>
Event<U>
select(TypeLiteral<U> subtype, java.lang.annotation.Annotation... bindings)
          Returns a child Event of the type specified and additional specified bindings.
 

Method Detail

fire

void fire(T event)
Fire an event

Parameters:
event - the event type

select

Event<T> select(java.lang.annotation.Annotation... bindings)
Returns a child Event with the additional specified bindings.

Parameters:
bindings - Additional bindings to add to child Event
Returns:
new child Event

select

<U extends T> Event<U> select(java.lang.Class<U> subtype,
                              java.lang.annotation.Annotation... bindings)
Returns a child Event of the type specified and additional specified bindings.

Type Parameters:
U - The subtype of T for the child Event
Parameters:
subtype - The class of the subtype of T
bindings - Additional specified bindings
Returns:
new child Event

select

<U extends T> Event<U> select(TypeLiteral<U> subtype,
                              java.lang.annotation.Annotation... bindings)
Returns a child Event of the type specified and additional specified bindings.

Type Parameters:
U - The subtype of T for the child Event
Parameters:
subtype - The TypeLiteral of the subtype of T
bindings - Additional specified bindings
Returns:
new child Event


Copyright © 2008-2009 Seam Framework. All Rights Reserved.