public class WeldInvocationContext extends ForwardingInvocationContext
InvocationContext
implementation. This is a forwarding implementation that delegates most method calls to an underlying
InvocationContext
. This allows multiple interceptor chains to be combined.
A call to proceed()
invokes the chain of intercepors in the given order. Once the chain finishes, the proceed()
method of the delegate is
invoked which results in the target method being invoked in case of SimpleInvocationContext
. Otherwise, the delegate chain is run.Constructor and Description |
---|
WeldInvocationContext(Constructor<?> constructor,
Object[] parameters,
Map<String,Object> contextData,
List<InterceptorMethodInvocation> chain) |
WeldInvocationContext(javax.interceptor.InvocationContext delegate,
List<InterceptorMethodInvocation> chain) |
WeldInvocationContext(javax.interceptor.InvocationContext delegate,
List<InterceptorMethodInvocation> chain,
CombinedInterceptorAndDecoratorStackMethodHandler currentHandler) |
WeldInvocationContext(Object target,
Method targetMethod,
Method proceed,
Object[] parameters,
List<InterceptorMethodInvocation> chain,
InterceptionDecorationContext.Stack stack) |
Modifier and Type | Method and Description |
---|---|
protected javax.interceptor.InvocationContext |
delegate() |
boolean |
hasNextInterceptor() |
protected Object |
interceptorChainCompleted() |
protected Object |
invokeNext() |
Object |
proceed() |
equals, getConstructor, getContextData, getMethod, getParameters, getTarget, getTimer, hashCode, setParameters, toString
public WeldInvocationContext(Constructor<?> constructor, Object[] parameters, Map<String,Object> contextData, List<InterceptorMethodInvocation> chain)
public WeldInvocationContext(Object target, Method targetMethod, Method proceed, Object[] parameters, List<InterceptorMethodInvocation> chain, InterceptionDecorationContext.Stack stack)
public WeldInvocationContext(javax.interceptor.InvocationContext delegate, List<InterceptorMethodInvocation> chain)
public WeldInvocationContext(javax.interceptor.InvocationContext delegate, List<InterceptorMethodInvocation> chain, CombinedInterceptorAndDecoratorStackMethodHandler currentHandler)
protected javax.interceptor.InvocationContext delegate()
delegate
in class ForwardingInvocationContext
public boolean hasNextInterceptor()
protected Object interceptorChainCompleted() throws Exception
Exception
public Object proceed() throws Exception
proceed
in interface javax.interceptor.InvocationContext
proceed
in class ForwardingInvocationContext
Exception
Copyright © 2018. All rights reserved.