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()
EventMetadata
getType
in interface EventMetadata
public Set<Annotation> getQualifiers()
EventMetadata
getQualifiers
in interface EventMetadata
public InjectionPoint getInjectionPoint()
EventMetadata
InjectionPoint
representing the injected Event
instance which fired the event, or
null
if it was fired from BeanManager.fireEvent(Object, Annotation...)
;getInjectionPoint
in interface EventMetadata
Copyright © 2014 Seam Framework. All Rights Reserved.