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