Skip navigation links
javax.enterprise.event

Interface Event<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void fire(T event)
      Fires an event with the Event object's bindings.
      Event<T> select(java.lang.annotation.Annotation... qualifiers)
      Adds the current set of qualifiers, returning a new Event object.
      <U extends T>
      Event<U>
      select(java.lang.Class<U> subtype, java.lang.annotation.Annotation... qaualifiers)
      Adds the current set of bindings, returning a new Event object.
      <U extends T>
      Event<U>
      select(TypeLiteral<U> subtype, java.lang.annotation.Annotation... qualifiers)
      Adds the current set of qualifiers, returning a new Event object.
    • Method Detail

      • fire

        void fire(T event)
        Fires an event with the Event object's bindings.
        Parameters:
        event - the event to fire
      • select

        Event<T> select(java.lang.annotation.Annotation... qualifiers)
        Adds the current set of qualifiers, returning a new Event object.
        Parameters:
        qualifiers - the additional qualifiers
      • select

        <U extends TEvent<U> select(java.lang.Class<U> subtype,
                                      java.lang.annotation.Annotation... qaualifiers)
        Adds the current set of bindings, returning a new Event object.
        Parameters:
        subtype - the restricted type
        qualifiers - the additional qualifiers
      • select

        <U extends TEvent<U> select(TypeLiteral<U> subtype,
                                      java.lang.annotation.Annotation... qualifiers)
        Adds the current set of qualifiers, returning a new Event object.
        Parameters:
        subtype - the restricted type
        qualifiers - the additional qualifiers