T - event typepublic class EventImpl<T> extends Object implements Event<T>, Serializable
Event,
Serialized Form| Constructor and Description |
|---|
EventImpl(EventMetadata metadata,
WebBeansContext webBeansContext)
Creates a new event.
|
| Modifier and Type | Method and Description |
|---|---|
void |
fire(T event)
Fires event with given event object.
|
<U extends T> |
fireAsync(U event) |
<U extends T> |
fireAsync(U event,
NotificationOptions notificationOptions) |
EventMetadataImpl |
getMetadata() |
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(EventMetadata metadata, WebBeansContext webBeansContext)
webBeansContext - public void fire(T event)
public <U extends T> CompletionStage<U> fireAsync(U event)
public <U extends T> CompletionStage<U> fireAsync(U event, NotificationOptions notificationOptions)
public <U extends T> Event<U> select(Class<U> subtype, Annotation... bindings)
public <U extends T> Event<U> select(TypeLiteral<U> subtype, Annotation... bindings)
public EventMetadataImpl getMetadata()
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.