Class 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:
    Event, Serialized Form
    • Constructor Detail

      • EventImpl

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

      • 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 TCompletionStage<U> fireAsync​(U event)
        Specified by:
        fireAsync in interface jakarta.enterprise.event.Event<T>
      • fireAsync

        public <U extends TCompletionStage<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>