T - event typepublic class EventImpl<T> extends Object implements javax.enterprise.event.Event<T>, Serializable
Event,
Serialized Form| Constructor and Description |
|---|
EventImpl(Annotation[] injectedBindings,
Type eventType,
javax.enterprise.inject.spi.InjectionPoint injectionPoint,
WebBeansContext webBeansContext)
Creates a new event.
|
| Modifier and Type | Method and Description |
|---|---|
void |
fire(T event)
Fires event with given event object.
|
javax.enterprise.event.Event<T> |
select(Annotation... bindings) |
<U extends T> |
select(Class<U> subtype,
Annotation... bindings) |
<U extends T> |
select(javax.enterprise.util.TypeLiteral<U> subtype,
Annotation... bindings) |
public EventImpl(Annotation[] injectedBindings, Type eventType, javax.enterprise.inject.spi.InjectionPoint injectionPoint, WebBeansContext webBeansContext)
injectedBindings - event bindingseventType - event typewebBeansContext - public void fire(T event)
fire in interface javax.enterprise.event.Event<T>public javax.enterprise.event.Event<T> select(Annotation... bindings)
select in interface javax.enterprise.event.Event<T>public <U extends T> javax.enterprise.event.Event<U> select(Class<U> subtype, Annotation... bindings)
select in interface javax.enterprise.event.Event<T>public <U extends T> javax.enterprise.event.Event<U> select(javax.enterprise.util.TypeLiteral<U> subtype, Annotation... bindings)
select in interface javax.enterprise.event.Event<T>Copyright © 2008-2013 The Apache Software Foundation. All Rights Reserved.