org.apache.webbeans.event
Class EventImpl<T>

java.lang.Object
  extended by org.apache.webbeans.event.EventImpl<T>
Type Parameters:
T - event type
All Implemented Interfaces:
Serializable, Event<T>

public class EventImpl<T>
extends Object
implements Event<T>, Serializable

Event implementation.

Version:
$Rev: 952250 $ $Date: 2010-06-07 16:39:41 +0200 (Mo, 07 Jun 2010) $
See Also:
Event, Serialized Form

Constructor Summary
EventImpl(Annotation[] injectedBindings, Type eventType)
          Creates a new event.
 
Method Summary
 void fire(T event)
          Fires event with given event object.
 Event<T> select(Annotation... bindings)
          
<U extends T>
Event<U>
select(Class<U> subtype, Annotation... bindings)
          
<U extends T>
Event<U>
select(TypeLiteral<U> subtype, Annotation... bindings)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventImpl

public EventImpl(Annotation[] injectedBindings,
                 Type eventType)
Creates a new event.

Parameters:
injectedBindings - event bindings
eventType - event type
Method Detail

fire

public void fire(T event)
Fires event with given event object.

Specified by:
fire in interface Event<T>

select

public Event<T> select(Annotation... bindings)

Specified by:
select in interface Event<T>

select

public <U extends T> Event<U> select(Class<U> subtype,
                                     Annotation... bindings)

Specified by:
select in interface Event<T>

select

public <U extends T> Event<U> select(TypeLiteral<U> subtype,
                                     Annotation... bindings)

Specified by:
select in interface Event<T>


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.