Package org.apache.webbeans.component
Class InterceptorBean.MultiMethodInvocationContext
- java.lang.Object
-
- org.apache.webbeans.component.InterceptorBean.MultiMethodInvocationContext
-
- All Implemented Interfaces:
javax.interceptor.InvocationContext
- Enclosing class:
- InterceptorBean<T>
public static class InterceptorBean.MultiMethodInvocationContext extends Object implements javax.interceptor.InvocationContext
An InvocationContext wraper for handling multiple interceptor methods. We will first make sure the own interceptor methods get handled and only then continue with the wrapped InvocationHandler.
-
-
Constructor Summary
Constructors Constructor Description MultiMethodInvocationContext(javax.interceptor.InvocationContext wrapped, javax.enterprise.inject.spi.InterceptionType interceptionType, Object instance, javax.enterprise.inject.spi.Interceptor interceptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConstructorgetConstructor()Map<String,Object>getContextData()intgetCurrentInterceptorIdx()MethodgetMethod()Object[]getParameters()ObjectgetTarget()ObjectgetTimer()javax.interceptor.InvocationContextgetWrapped()Objectproceed()voidsetParameters(Object[] parameters)
-
-
-
Constructor Detail
-
MultiMethodInvocationContext
public MultiMethodInvocationContext(javax.interceptor.InvocationContext wrapped, javax.enterprise.inject.spi.InterceptionType interceptionType, Object instance, javax.enterprise.inject.spi.Interceptor interceptor)
-
-
Method Detail
-
getCurrentInterceptorIdx
public int getCurrentInterceptorIdx()
-
getWrapped
public javax.interceptor.InvocationContext getWrapped()
-
proceed
public Object proceed() throws Exception
- Specified by:
proceedin interfacejavax.interceptor.InvocationContext- Throws:
Exception
-
getContextData
public Map<String,Object> getContextData()
- Specified by:
getContextDatain interfacejavax.interceptor.InvocationContext
-
getMethod
public Method getMethod()
- Specified by:
getMethodin interfacejavax.interceptor.InvocationContext
-
getTarget
public Object getTarget()
- Specified by:
getTargetin interfacejavax.interceptor.InvocationContext
-
getTimer
public Object getTimer()
- Specified by:
getTimerin interfacejavax.interceptor.InvocationContext
-
getParameters
public Object[] getParameters()
- Specified by:
getParametersin interfacejavax.interceptor.InvocationContext
-
setParameters
public void setParameters(Object[] parameters)
- Specified by:
setParametersin interfacejavax.interceptor.InvocationContext
-
getConstructor
public Constructor getConstructor()
- Specified by:
getConstructorin interfacejavax.interceptor.InvocationContext
-
-