Package io.quarkus.arc.impl
Class InvocationContexts
- java.lang.Object
-
- io.quarkus.arc.impl.InvocationContexts
-
public final class InvocationContexts extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static jakarta.interceptor.InvocationContext
aroundConstruct(Constructor<?> constructor, Object[] parameters, List<InterceptorInvocation> chain, Function<Object[],Object> forward, Set<Annotation> interceptorBindings)
static Object
performAroundInvoke(Object target, Object[] args, InterceptedMethodMetadata metadata)
static Object
performSuperclassInterception(jakarta.interceptor.InvocationContext delegate, List<BiFunction<Object,jakarta.interceptor.InvocationContext,Object>> methods, Object interceptorInstance, Object[] parameters)
static Object
performTargetAroundInvoke(jakarta.interceptor.InvocationContext delegate, List<BiFunction<Object,jakarta.interceptor.InvocationContext,Object>> aroundInvokeMethods, BiFunction<Object,jakarta.interceptor.InvocationContext,Object> aroundInvokeForward)
static jakarta.interceptor.InvocationContext
postConstruct(Object target, List<InterceptorInvocation> chain, Set<Annotation> interceptorBindings, Runnable forward)
static jakarta.interceptor.InvocationContext
preDestroy(Object target, List<InterceptorInvocation> chain, Set<Annotation> interceptorBindings, Runnable forward)
-
-
-
Method Detail
-
performAroundInvoke
public static Object performAroundInvoke(Object target, Object[] args, InterceptedMethodMetadata metadata) throws Exception
- Parameters:
target
-args
-metadata
-- Returns:
- the return value
- Throws:
Exception
-
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
-
aroundConstruct
public static jakarta.interceptor.InvocationContext aroundConstruct(Constructor<?> constructor, Object[] parameters, List<InterceptorInvocation> chain, Function<Object[],Object> forward, Set<Annotation> interceptorBindings)
- Parameters:
target
-chain
-interceptorBindings
-- Returns:
- a new
AroundConstruct
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
-
-