Class EventImpl<T>

    • Method Detail

      • 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 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 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 TWeldEvent<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 TWeldEvent<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)