Class EventImpl<T>

Type Parameters:
T - The type of event being wrapped
All Implemented Interfaces:
jakarta.enterprise.event.Event<T>, Serializable, WeldEvent<T>

public class EventImpl<T> extends AbstractFacade<T,WeldEvent<T>> implements WeldEvent<T>, Serializable
Implementation of the Event interface
Author:
David Allen
See Also:
  • Method Details

    • of

      public static <E> EventImpl<E> of(jakarta.enterprise.inject.spi.InjectionPoint injectionPoint, BeanManagerImpl beanManager)
    • toString

      public String toString()
      Gets a string representation
      Overrides:
      toString in class Object
      Returns:
      A string representation
    • fire

      public void fire(T event)
      Specified by:
      fire in interface jakarta.enterprise.event.Event<T>
    • fireAsync

      public <U extends T> CompletionStage<U> fireAsync(U event)
      Specified by:
      fireAsync in interface jakarta.enterprise.event.Event<T>
    • fireAsync

      public <U extends T> CompletionStage<U> fireAsync(U event, jakarta.enterprise.event.NotificationOptions options)
      Specified by:
      fireAsync in interface jakarta.enterprise.event.Event<T>
    • select

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

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

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

      public <X> WeldEvent<X> select(Type type, Annotation... qualifiers)
      Description copied from interface: WeldEvent

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

      Specified by:
      select in interface WeldEvent<T>
      Type Parameters:
      X - the required type
      Parameters:
      type - a Type representing the required type
      qualifiers - the additional required qualifiers
      Returns:
      the child Event
    • getEventType

      protected Type getEventType(Class<?> runtimeType)