public interface EventMetadata
Provides access to metadata about an observed event payload. The metadata may be for events fired with either of
Event
or BeanContainer.getEvent()
EventMetadata
may only be injected into an observer method. For example:
public void afterLogin(@Observes LoggedInEvent event, EventMetadata eventMetadata) { ... }
Observes
Modifier and Type | Method and Description |
---|---|
InjectionPoint |
getInjectionPoint()
Get the
InjectionPoint representing the injected Event instance which fired the event |
java.util.Set<java.lang.annotation.Annotation> |
getQualifiers() |
java.lang.reflect.Type |
getType()
Get the type representing runtime class of the event object with type variables resolved.
|
java.util.Set<java.lang.annotation.Annotation> getQualifiers()
InjectionPoint getInjectionPoint()
InjectionPoint
representing the injected Event
instance which fired the eventjava.lang.reflect.Type getType()