public class WeldInvocationContextImpl extends ForwardingInvocationContext implements org.jboss.weld.interceptor.WeldInvocationContext
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.INTERCEPTOR_BINDINGS_KEY| Constructor and Description |
|---|
WeldInvocationContextImpl(Constructor<?> constructor,
Object[] parameters,
Map<String,Object> contextData,
List<InterceptorMethodInvocation> chain,
Set<Annotation> interceptorBindings) |
WeldInvocationContextImpl(javax.interceptor.InvocationContext delegate,
List<InterceptorMethodInvocation> chain,
Set<Annotation> interceptorBindings,
CombinedInterceptorAndDecoratorStackMethodHandler currentHandler) |
WeldInvocationContextImpl(Object target,
Method targetMethod,
Method proceed,
Object[] parameters,
List<InterceptorMethodInvocation> chain,
Set<Annotation> interceptorBindings,
InterceptionDecorationContext.Stack stack) |
| Modifier and Type | Method and Description |
|---|---|
protected javax.interceptor.InvocationContext |
delegate() |
Set<Annotation> |
getInterceptorBindings() |
<T extends Annotation> |
getInterceptorBindingsByType(Class<T> annotationType) |
boolean |
hasNextInterceptor() |
protected Object |
interceptorChainCompleted() |
protected Object |
invokeNext() |
Object |
proceed() |
equals, getConstructor, getContextData, getMethod, getParameters, getTarget, getTimer, hashCode, setParameters, toStringpublic WeldInvocationContextImpl(Constructor<?> constructor, Object[] parameters, Map<String,Object> contextData, List<InterceptorMethodInvocation> chain, Set<Annotation> interceptorBindings)
public WeldInvocationContextImpl(Object target, Method targetMethod, Method proceed, Object[] parameters, List<InterceptorMethodInvocation> chain, Set<Annotation> interceptorBindings, InterceptionDecorationContext.Stack stack)
public WeldInvocationContextImpl(javax.interceptor.InvocationContext delegate,
List<InterceptorMethodInvocation> chain,
Set<Annotation> interceptorBindings,
CombinedInterceptorAndDecoratorStackMethodHandler currentHandler)
protected javax.interceptor.InvocationContext delegate()
delegate in class ForwardingInvocationContextpublic Set<Annotation> getInterceptorBindings()
getInterceptorBindings in interface org.jboss.weld.interceptor.WeldInvocationContextpublic <T extends Annotation> Set<T> getInterceptorBindingsByType(Class<T> annotationType)
getInterceptorBindingsByType in interface org.jboss.weld.interceptor.WeldInvocationContextpublic boolean hasNextInterceptor()
protected Object interceptorChainCompleted() throws Exception
Exceptionpublic Object proceed() throws Exception
proceed in interface javax.interceptor.InvocationContextproceed in class ForwardingInvocationContextExceptionCopyright © 2017. All rights reserved.