Class InvocationContexts


  • public final class InvocationContexts
    extends Object
    • Method Detail

      • performTargetAroundInvoke

        public static Object performTargetAroundInvoke​(jakarta.interceptor.InvocationContext delegate,
                                                       List<BiFunction<Object,​jakarta.interceptor.InvocationContext,​Object>> aroundInvokeMethods,
                                                       BiFunction<Object,​jakarta.interceptor.InvocationContext,​Object> aroundInvokeForward)
                                                throws Exception
        Parameters:
        delegate -
        aroundInvokeMethods -
        aroundInvokeForward -
        Returns:
        the return value
        Throws:
        Exception
      • postConstruct

        public static jakarta.interceptor.InvocationContext postConstruct​(Object target,
                                                                          List<InterceptorInvocation> chain,
                                                                          Set<Annotation> interceptorBindings,
                                                                          Runnable forward)
        Parameters:
        target -
        chain -
        interceptorBindings -
        forward -
        Returns:
        a new invocation context
      • preDestroy

        public static jakarta.interceptor.InvocationContext preDestroy​(Object target,
                                                                       List<InterceptorInvocation> chain,
                                                                       Set<Annotation> interceptorBindings,
                                                                       Runnable forward)
        Parameters:
        target -
        chain -
        interceptorBindings -
        forward -
        Returns:
        a new invocation context
      • performSuperclassInterception

        public static Object performSuperclassInterception​(jakarta.interceptor.InvocationContext delegate,
                                                           List<BiFunction<Object,​jakarta.interceptor.InvocationContext,​Object>> methods,
                                                           Object interceptorInstance,
                                                           Object[] parameters)
                                                    throws Exception
        Parameters:
        delegate -
        methods -
        interceptorInstance -
        Returns:
        the return value
        Throws:
        Exception