Module jakarta.cdi

Interface ObserverMethodConfigurator.EventConsumer<T>

  • Type Parameters:
    T - event type
    Enclosing interface:
    ObserverMethodConfigurator<T>
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public static interface ObserverMethodConfigurator.EventConsumer<T>
    Represents an operation that accepts a context of a fired event.
    Author:
    Martin Kouba
    See Also:
    EventContext
    • Method Detail

      • accept

        void accept​(EventContext<T> eventContext)
             throws java.lang.Exception
        Parameters:
        eventContext - the EventContext used to fire the event
        Throws:
        java.lang.Exception - The thrown checked exception is wrapped and rethrown as an (unchecked) ObserverException