public class EventPacket<T> extends java.lang.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() |
java.util.Set<java.lang.annotation.Annotation> |
getQualifiers()
Get the qualifiers for which event payload was fired.
|
java.lang.reflect.Type |
getType()
Get the type representing runtime class of the event object with type variables resolved.
|
static <T> EventPacket<T> |
of(T event,
java.lang.annotation.Annotation... qualifiers) |
static <T> EventPacket<T> |
of(T event,
java.lang.reflect.Type eventType,
java.util.Set<java.lang.annotation.Annotation> qualifiers,
InjectionPoint ip) |
java.lang.String |
toString() |
public static <T> EventPacket<T> of(T event, java.lang.reflect.Type eventType, java.util.Set<java.lang.annotation.Annotation> qualifiers, InjectionPoint ip)
public static <T> EventPacket<T> of(T event, java.lang.annotation.Annotation... qualifiers)
public T getPayload()
public java.lang.reflect.Type getType()
EventMetadatagetType in interface EventMetadatapublic java.util.Set<java.lang.annotation.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 EventMetadatapublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2014. All Rights Reserved.