Interface WeldInvocationContext

  • All Superinterfaces:
    jakarta.interceptor.InvocationContext

    public interface WeldInvocationContext
    extends jakarta.interceptor.InvocationContext
    Represents an enhanced version of InvocationContext.
    Author:
    Martin Kouba
    See Also:
    CDI-468
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String INTERCEPTOR_BINDINGS_KEY
      A key value under which we store interceptor bindings in InvocationContext
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Set<Annotation> getInterceptorBindings()
      Return the set of interceptor bindings for a lifecycle callback, business method, timeout method, or constructor.
      <T extends Annotation>
      Set<T>
      getInterceptorBindingsByType​(Class<T> annotationType)
      Return the set of interceptor bindings with the specified annotation type.
      • Methods inherited from interface jakarta.interceptor.InvocationContext

        getConstructor, getContextData, getMethod, getParameters, getTarget, getTimer, proceed, setParameters
    • Field Detail

      • INTERCEPTOR_BINDINGS_KEY

        static final String INTERCEPTOR_BINDINGS_KEY
        A key value under which we store interceptor bindings in InvocationContext
        See Also:
        Constant Field Values
    • Method Detail

      • getInterceptorBindings

        Set<Annotation> getInterceptorBindings()
        Return the set of interceptor bindings for a lifecycle callback, business method, timeout method, or constructor.

        The returned set may be empty if only interceptors using the Interceptors annotation are associated.

        Returns:
        a set of interceptor bindings
      • getInterceptorBindingsByType

        <T extends AnnotationSet<T> getInterceptorBindingsByType​(Class<T> annotationType)
        Return the set of interceptor bindings with the specified annotation type.
        Type Parameters:
        T - subclass of Annotation
        Parameters:
        annotationType - type of annotation
        Returns:
        a set of interceptor bindings with the specified annotation type
        See Also:
        getInterceptorBindings()