public class SimpleInvocationContext extends Object
InvocationContext implementation whose proceed() invokes the target method directly without calling any interceptors. If this is not
a method interception, a call to proceed() always returns null.| Modifier and Type | Field and Description |
|---|---|
protected Constructor<?> |
constructor |
protected Map<String,Object> |
contextData |
protected Method |
method |
protected Object[] |
parameters |
protected Method |
proceed |
protected Object |
target |
protected Object |
timer |
| Constructor and Description |
|---|
SimpleInvocationContext(Constructor<?> constructor,
Object[] parameters,
Map<String,Object> contextData) |
SimpleInvocationContext(Object target,
Method targetMethod,
Method proceed,
Object[] parameters) |
| Modifier and Type | Method and Description |
|---|---|
Constructor<?> |
getConstructor() |
Map<String,Object> |
getContextData() |
Method |
getMethod() |
Object[] |
getParameters() |
protected Method |
getProceed() |
Object |
getTarget() |
Object |
getTimer() |
Object |
proceed() |
void |
setParameters(Object[] params) |
protected final Method method
protected Object[] parameters
protected final Object target
protected final Object timer
protected final Constructor<?> constructor
protected final Method proceed
public SimpleInvocationContext(Object target, Method targetMethod, Method proceed, Object[] parameters)
public SimpleInvocationContext(Constructor<?> constructor, Object[] parameters, Map<String,Object> contextData)
public Map<String,Object> getContextData()
getContextData in interface javax.interceptor.InvocationContextpublic Method getMethod()
getMethod in interface javax.interceptor.InvocationContextpublic Object[] getParameters()
getParameters in interface javax.interceptor.InvocationContextpublic Object getTarget()
getTarget in interface javax.interceptor.InvocationContextpublic void setParameters(Object[] params)
setParameters in interface javax.interceptor.InvocationContextpublic Object getTimer()
getTimer in interface javax.interceptor.InvocationContextpublic Constructor<?> getConstructor()
getConstructor in interface javax.interceptor.InvocationContextprotected Method getProceed()
Copyright © 2017. All rights reserved.