-
public interface EventMetadata
Provides access to metadata about an observed event payload.
EventMetadata
may only be injected into an observer method. For example:public void afterLogin(@Observes LoggedInEvent event, EventMetadata eventMetadata) { ... }
- Since:
- 1.1
- Author:
- Lincoln Baxter, III, Pete Muir, Antoine Sabot-Durand
- See Also:
Observes
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InjectionPoint
getInjectionPoint()
Get theInjectionPoint
representing the injectedEvent
instance which fired the eventjava.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.
-
-
-
Method Detail
-
getQualifiers
java.util.Set<java.lang.annotation.Annotation> getQualifiers()
- Returns:
- the qualifiers for which event payload was fired.
-
getInjectionPoint
InjectionPoint getInjectionPoint()
Get theInjectionPoint
representing the injectedEvent
instance which fired the event- Returns:
- InjectionPoint of the Event
-
getType
java.lang.reflect.Type getType()
Get the type representing runtime class of the event object with type variables resolved.- Returns:
- the runtime type of the event object
-
-