public class EventPacket<T> extends Object implements EventMetadata
An event packet consisting of:
InjectionPoint representing the injected Event| Modifier and Type | Method and Description |
|---|---|
InjectionPoint |
getInjectionPoint()
Get the
InjectionPoint representing the injected Event instance which fired the event, or
null if it was fired from BeanManager.fireEvent(Object, Annotation...); |
T |
getPayload() |
Set<Annotation> |
getQualifiers()
Get the qualifiers for which event payload was fired.
|
Type |
getType()
Get the type representing runtime class of the event object with type variables resolved.
|
static <T> EventPacket<T> |
of(T event,
Annotation... qualifiers) |
static <T> EventPacket<T> |
of(T event,
Type eventType,
Set<Annotation> qualifiers,
InjectionPoint ip) |
String |
toString() |
public static <T> EventPacket<T> of(T event, Type eventType, Set<Annotation> qualifiers, InjectionPoint ip)
public static <T> EventPacket<T> of(T event, Annotation... qualifiers)
public T getPayload()
public Type getType()
EventMetadatagetType in interface EventMetadatapublic Set<Annotation> getQualifiers()
EventMetadatagetQualifiers in interface EventMetadatapublic InjectionPoint getInjectionPoint()
EventMetadataInjectionPoint representing the injected Event instance which fired the event, or
null if it was fired from BeanManager.fireEvent(Object, Annotation...);getInjectionPoint in interface EventMetadataCopyright © 2014. All Rights Reserved.