javax.enterprise.inject.spi

## Interface EventMetadata

-     public interface EventMetadata

  Provides access to metadata about an observed event payload. The metadata may be for events fired with either of `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) { ... }

  Since:
    1.1
  Author:
    Lincoln Baxter, III, Pete Muir
  See Also:
    `Observes`

- - ### Method Summary

    Methods
    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...)`;
    `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.

- - ### Method Detail

    - #### getQualifiers

          Set<Annotation> getQualifiers()

      Get the qualifiers for which event payload was fired.

    - #### getInjectionPoint

          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...)`;

    - #### getType

          Type getType()

      Get the type representing runtime class of the event object with type variables resolved.

Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.