Package org.jboss.weld.interceptor.proxy
Class SimpleInvocationContext
- java.lang.Object
-
- org.jboss.weld.interceptor.proxy.SimpleInvocationContext
-
- All Implemented Interfaces:
jakarta.interceptor.InvocationContext
,org.jboss.weld.interceptor.WeldInvocationContext
public class SimpleInvocationContext extends Object
SimpleInvocationContext
implementation whoseproceed()
invokes the target method directly without calling any interceptors. If this is not a method interception, a call toproceed()
always returns null.- Author:
- Marius Bogoevici, Jozef Hartinger
-
-
Field Summary
Fields Modifier and Type Field Description protected Constructor<?>
constructor
protected Map<String,Object>
contextData
protected Set<Annotation>
interceptorBindings
protected Method
method
protected Object[]
parameters
protected Method
proceed
protected Object
target
protected Object
timer
-
Constructor Summary
Constructors Constructor Description SimpleInvocationContext(Object target, Method targetMethod, Method proceed, Object[] parameters, Set<Annotation> interceptorBindings)
SimpleInvocationContext(Constructor<?> constructor, Object[] parameters, Map<String,Object> contextData, Set<Annotation> interceptorBindings)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Constructor<?>
getConstructor()
Map<String,Object>
getContextData()
Set<Annotation>
getInterceptorBindings()
<T extends Annotation>
Set<T>getInterceptorBindingsByType(Class<T> annotationType)
Method
getMethod()
Object[]
getParameters()
protected Method
getProceed()
Object
getTarget()
Object
getTimer()
protected static Map<String,Object>
newContextData(Set<Annotation> interceptorBindings)
Object
proceed()
void
setParameters(Object[] params)
-
-
-
Field Detail
-
method
protected final Method method
-
parameters
protected Object[] parameters
-
target
protected final Object target
-
timer
protected final Object timer
-
constructor
protected final Constructor<?> constructor
-
interceptorBindings
protected final Set<Annotation> interceptorBindings
-
proceed
protected final Method proceed
-
-
Constructor Detail
-
SimpleInvocationContext
public SimpleInvocationContext(Object target, Method targetMethod, Method proceed, Object[] parameters, Set<Annotation> interceptorBindings)
-
SimpleInvocationContext
public SimpleInvocationContext(Constructor<?> constructor, Object[] parameters, Map<String,Object> contextData, Set<Annotation> interceptorBindings)
-
-
Method Detail
-
getContextData
public Map<String,Object> getContextData()
- Specified by:
getContextData
in interfacejakarta.interceptor.InvocationContext
-
newContextData
protected static Map<String,Object> newContextData(Set<Annotation> interceptorBindings)
-
getMethod
public Method getMethod()
- Specified by:
getMethod
in interfacejakarta.interceptor.InvocationContext
-
getParameters
public Object[] getParameters()
- Specified by:
getParameters
in interfacejakarta.interceptor.InvocationContext
-
getTarget
public Object getTarget()
- Specified by:
getTarget
in interfacejakarta.interceptor.InvocationContext
-
setParameters
public void setParameters(Object[] params)
- Specified by:
setParameters
in interfacejakarta.interceptor.InvocationContext
-
getTimer
public Object getTimer()
- Specified by:
getTimer
in interfacejakarta.interceptor.InvocationContext
-
getConstructor
public Constructor<?> getConstructor()
- Specified by:
getConstructor
in interfacejakarta.interceptor.InvocationContext
-
getInterceptorBindingsByType
public <T extends Annotation> Set<T> getInterceptorBindingsByType(Class<T> annotationType)
- Specified by:
getInterceptorBindingsByType
in interfaceorg.jboss.weld.interceptor.WeldInvocationContext
-
getInterceptorBindings
public Set<Annotation> getInterceptorBindings()
- Specified by:
getInterceptorBindings
in interfaceorg.jboss.weld.interceptor.WeldInvocationContext
-
getProceed
protected Method getProceed()
-
-