Package javax.enterprise.inject.spi
Interface EventMetadata
-
public interface EventMetadataProvides access to metadata about an observed event payload. The metadata may be for events fired with either of
EventorBeanManager.fireEvent(Object, Annotation...).EventMetadatamay 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
- See Also:
Observes
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InjectionPointgetInjectionPoint()Get theInjectionPointrepresenting the injectedEventinstance which fired the event, ornullif it was fired fromBeanManager.fireEvent(Object, Annotation...);java.util.Set<java.lang.annotation.Annotation>getQualifiers()Get the qualifiers for which event payload was fired.java.lang.reflect.TypegetType()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()
Get the qualifiers for which event payload was fired.
-
getInjectionPoint
InjectionPoint getInjectionPoint()
Get theInjectionPointrepresenting the injectedEventinstance which fired the event, ornullif it was fired fromBeanManager.fireEvent(Object, Annotation...);
-
getType
java.lang.reflect.Type getType()
Get the type representing runtime class of the event object with type variables resolved.
-
-