Package org.apache.webbeans.component
Class InterceptorBean.MultiMethodInvocationContext
- java.lang.Object
-
- org.apache.webbeans.component.InterceptorBean.MultiMethodInvocationContext
-
- All Implemented Interfaces:
jakarta.interceptor.InvocationContext
- Enclosing class:
- InterceptorBean<T>
public static class InterceptorBean.MultiMethodInvocationContext extends Object implements jakarta.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(jakarta.interceptor.InvocationContext wrapped, jakarta.enterprise.inject.spi.InterceptionType interceptionType, Object instance, jakarta.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()jakarta.interceptor.InvocationContextgetWrapped()Objectproceed()voidsetParameters(Object[] parameters)
-
-
-
Constructor Detail
-
MultiMethodInvocationContext
public MultiMethodInvocationContext(jakarta.interceptor.InvocationContext wrapped, jakarta.enterprise.inject.spi.InterceptionType interceptionType, Object instance, jakarta.enterprise.inject.spi.Interceptor interceptor)
-
-
Method Detail
-
getCurrentInterceptorIdx
public int getCurrentInterceptorIdx()
-
getWrapped
public jakarta.interceptor.InvocationContext getWrapped()
-
proceed
public Object proceed() throws Exception
- Specified by:
proceedin interfacejakarta.interceptor.InvocationContext- Throws:
Exception
-
getContextData
public Map<String,Object> getContextData()
- Specified by:
getContextDatain interfacejakarta.interceptor.InvocationContext
-
getMethod
public Method getMethod()
- Specified by:
getMethodin interfacejakarta.interceptor.InvocationContext
-
getTarget
public Object getTarget()
- Specified by:
getTargetin interfacejakarta.interceptor.InvocationContext
-
getTimer
public Object getTimer()
- Specified by:
getTimerin interfacejakarta.interceptor.InvocationContext
-
getParameters
public Object[] getParameters()
- Specified by:
getParametersin interfacejakarta.interceptor.InvocationContext
-
setParameters
public void setParameters(Object[] parameters)
- Specified by:
setParametersin interfacejakarta.interceptor.InvocationContext
-
getConstructor
public Constructor getConstructor()
- Specified by:
getConstructorin interfacejakarta.interceptor.InvocationContext
-
-