Interface WeldEvent<T>

All Superinterfaces:
jakarta.enterprise.event.Event<T>

public interface WeldEvent<T> extends jakarta.enterprise.event.Event<T>
Enriched version of Event.
Author:
Matej Novotny
  • Method Summary

    Modifier and Type
    Method
    Description
    <U extends T>
    WeldEvent<U>
    select(jakarta.enterprise.util.TypeLiteral<U> subtype, Annotation... qualifiers)
     
    select(Annotation... qualifiers)
     
    <U extends T>
    WeldEvent<U>
    select(Class<U> subtype, Annotation... qualifiers)
     
    <X> WeldEvent<X>
    select(Type type, Annotation... qualifiers)
    Obtains a child Event for the given required type and additional required qualifiers.

    Methods inherited from interface jakarta.enterprise.event.Event

    fire, fireAsync, fireAsync
  • Method Details

    • select

      <X> WeldEvent<X> select(Type type, Annotation... qualifiers)

      Obtains a child Event for the given required type and additional required qualifiers. Must be invoked on Event<T> where T is Object.

      Type Parameters:
      X - the required type
      Parameters:
      type - a Type representing the required type
      qualifiers - the additional required qualifiers
      Returns:
      the child Event
      Throws:
      IllegalArgumentException - if passed two instances of the same non repeating qualifier type, or an instance of an annotation that is not a qualifier type
      IllegalStateException - if invoked on Event<T> where T is of any other type than Object
    • select

      WeldEvent<T> select(Annotation... qualifiers)
      Specified by:
      select in interface jakarta.enterprise.event.Event<T>
    • select

      <U extends T> WeldEvent<U> select(Class<U> subtype, Annotation... qualifiers)
      Specified by:
      select in interface jakarta.enterprise.event.Event<T>
    • select

      <U extends T> WeldEvent<U> select(jakarta.enterprise.util.TypeLiteral<U> subtype, Annotation... qualifiers)
      Specified by:
      select in interface jakarta.enterprise.event.Event<T>