Provides access to metadata about an observed event payload. The metadata may be for events fired with either of
javax.enterprise.event.Event or BeanManager#fireEvent(Object, Annotation...).
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 |
|---|---|
| public InjectionPoint | Returns: InjectionPoint of the EventGet the |
| public Set | |
| public Type | Returns: the runtime type of the event objectGet the type representing runtime class of the event object with type variables resolved. |
| getInjectionPoint | back to summary |
|---|---|
| public InjectionPoint getInjectionPoint() Get the
| |
| getQualifiers | back to summary |
|---|---|
public Set
| |
| getType | back to summary |
|---|---|
| public Type getType() Get the type representing runtime class of the event object with type variables resolved.
| |