Module jakarta.cdi

Interface ObserverMethodConfigurator<T>

    • Method Detail

      • read

        ObserverMethodConfigurator<T> read​(java.lang.reflect.Method method)
        Read observer meta data from a existing Method
        Parameters:
        method - to read meta data from
        Returns:
        self
      • beanClass

        ObserverMethodConfigurator<T> beanClass​(java.lang.Class<?> type)
        Set the class of the Bean containing this observer. If not set, the extension class is used.
        Parameters:
        type - the bean class containing this configurator.
        Returns:
        self
      • observedType

        ObserverMethodConfigurator<T> observedType​(java.lang.reflect.Type type)
        Set the type of the observed event
        Parameters:
        type - of the observed event
        Returns:
        self
      • addQualifier

        ObserverMethodConfigurator<T> addQualifier​(java.lang.annotation.Annotation qualifier)
        Add the qualifier to the observed event
        Parameters:
        qualifier - to add to event
        Returns:
        self
      • addQualifiers

        ObserverMethodConfigurator<T> addQualifiers​(java.lang.annotation.Annotation... qualifiers)
        Add all the qualifiers to the Observed event
        Parameters:
        qualifiers - to add to event
        Returns:
        self
      • addQualifiers

        ObserverMethodConfigurator<T> addQualifiers​(java.util.Set<java.lang.annotation.Annotation> qualifiers)
        Add all the qualifiers to the Observed event
        Parameters:
        qualifiers - to add to event
        Returns:
        self
      • qualifiers

        ObserverMethodConfigurator<T> qualifiers​(java.lang.annotation.Annotation... qualifiers)
        Replace all qualifiers on the Observed event.
        Parameters:
        qualifiers - to put on event
        Returns:
        self
      • qualifiers

        ObserverMethodConfigurator<T> qualifiers​(java.util.Set<java.lang.annotation.Annotation> qualifiers)
        Replace all qualifiers on the Observed event.
        Parameters:
        qualifiers - to put on event
        Returns:
        self
      • priority

        ObserverMethodConfigurator<T> priority​(int priority)
        Set the priority for the observer to build
        Parameters:
        priority - priority of the observer
        Returns:
        self
      • async

        ObserverMethodConfigurator<T> async​(boolean async)
        Allows modification of the asynchronous status of the observer to build.
        Parameters:
        async - async status
        Returns:
        self