Interface EventObserverSupport.EventObserver<E extends Event>

  • Type Parameters:
    E - event type
    All Known Implementing Classes:
    CdiEventObserver
    Enclosing class:
    EventObserverSupport

    public static interface EventObserverSupport.EventObserver<E extends Event>
    An observer of a specific event type.
    • Method Detail

      • getId

        String getId()
        Return the unique identifier for this observer.

        This value will be used as the identifier when registering an EventInterceptor.

        Returns:
        the unique identifier for this observer
      • notify

        void notify​(E event)
        Process an event.
        Parameters:
        event - the event
      • isAsync

        boolean isAsync()
        Return true if this observer should be async.
        Returns:
        true if this observer should be async
      • getObservedQualifiers

        Set<Annotation> getObservedQualifiers()
        Return the qualifiers for the observer that wil be used to further qualify which events are received.
        Returns:
        the qualifiers for the observer