Class EventImpl<T>

java.lang.Object
org.apache.webbeans.event.EventImpl<T>
Type Parameters:
T - event type
All Implemented Interfaces:
jakarta.enterprise.event.Event<T>, Serializable

public class EventImpl<T> extends Object implements jakarta.enterprise.event.Event<T>, Serializable
Event implementation.
See Also:
  • Constructor Details

    • EventImpl

      public EventImpl(jakarta.enterprise.inject.spi.EventMetadata metadata, WebBeansContext webBeansContext)
      Creates a new event.
      Parameters:
      webBeansContext -
  • Method Details

    • fire

      public void fire(T event)
      Fires event with given event object.
      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 notificationOptions)
      Specified by:
      fireAsync in interface jakarta.enterprise.event.Event<T>
    • select

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

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

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

      public EventMetadataImpl getMetadata()