Package io.quarkus.arc.impl
Class InvocationContexts
java.lang.Object
io.quarkus.arc.impl.InvocationContexts
-
Method Summary
Modifier and TypeMethodDescriptionstatic jakarta.interceptor.InvocationContextaroundConstruct(Constructor<?> constructor, Object[] parameters, List<InterceptorInvocation> chain, Function<Object[], Object> forward, Set<Annotation> interceptorBindings) static ObjectperformAroundInvoke(Object target, Object[] args, InterceptedMethodMetadata metadata) static ObjectperformSuperclassInterception(jakarta.interceptor.InvocationContext delegate, List<BiFunction<Object, jakarta.interceptor.InvocationContext, Object>> methods, Object interceptorInstance, Object[] parameters) static ObjectperformTargetAroundInvoke(jakarta.interceptor.InvocationContext delegate, List<BiFunction<Object, jakarta.interceptor.InvocationContext, Object>> aroundInvokeMethods, BiFunction<Object, jakarta.interceptor.InvocationContext, Object> aroundInvokeForward) static jakarta.interceptor.InvocationContextpostConstruct(Object target, List<InterceptorInvocation> chain, Set<Annotation> interceptorBindings, Runnable forward) static jakarta.interceptor.InvocationContextpreDestroy(Object target, List<InterceptorInvocation> chain, Set<Annotation> interceptorBindings, Runnable forward)
-
Method Details
-
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, throws ExceptionObject>> aroundInvokeMethods, BiFunction<Object, jakarta.interceptor.InvocationContext, Object> aroundInvokeForward) - 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
AroundConstructinvocation context
-
performSuperclassInterception
public static Object performSuperclassInterception(jakarta.interceptor.InvocationContext delegate, List<BiFunction<Object, jakarta.interceptor.InvocationContext, throws ExceptionObject>> methods, Object interceptorInstance, Object[] parameters) - Parameters:
delegate-methods-interceptorInstance-- Returns:
- the return value
- Throws:
Exception
-