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() |
T |
getPayload() |
Set<Annotation> |
getQualifiers() |
Type |
getType() |
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()
getType in interface EventMetadatapublic Set<Annotation> getQualifiers()
getQualifiers in interface EventMetadatapublic InjectionPoint getInjectionPoint()
getInjectionPoint in interface EventMetadataCopyright © 2014. All Rights Reserved.