Class EventImpl<T>

java.lang.Object
org.jboss.weld.bean.builtin.AbstractFacade<T,org.jboss.weld.events.WeldEvent<T>>
org.jboss.weld.event.EventImpl<T>
Type Parameters:
T - The type of event being wrapped
All Implemented Interfaces:
jakarta.enterprise.event.Event<T>, Serializable, org.jboss.weld.events.WeldEvent<T>

public class EventImpl<T> extends AbstractFacade<T,org.jboss.weld.events.WeldEvent<T>> implements org.jboss.weld.events.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 org.jboss.weld.events.WeldEvent<T> select(Annotation... qualifiers)
      Specified by:
      select in interface jakarta.enterprise.event.Event<T>
      Specified by:
      select in interface org.jboss.weld.events.WeldEvent<T>
    • select

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

      public <U extends T> org.jboss.weld.events.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 org.jboss.weld.events.WeldEvent<T>
    • select

      public <X> org.jboss.weld.events.WeldEvent<X> select(Type type, Annotation... qualifiers)
      Specified by:
      select in interface org.jboss.weld.events.WeldEvent<T>
    • getEventType

      protected Type getEventType(Class<?> runtimeType)