public class SimpleInvocationContext extends java.lang.Object implements InvocationContext
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.| Constructor and Description |
|---|
SimpleInvocationContext(java.lang.reflect.Constructor<?> constructor,
java.lang.Object[] parameters,
java.util.Map<java.lang.String,java.lang.Object> contextData) |
SimpleInvocationContext(java.lang.Object target,
java.lang.reflect.Method targetMethod,
java.lang.reflect.Method proceed,
java.lang.Object[] parameters) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.reflect.Constructor<?> |
getConstructor() |
java.util.Map<java.lang.String,java.lang.Object> |
getContextData() |
java.lang.reflect.Method |
getMethod() |
java.lang.Object[] |
getParameters() |
java.lang.Object |
getTarget() |
java.lang.Object |
getTimer() |
java.lang.Object |
proceed() |
void |
setParameters(java.lang.Object[] params) |
public SimpleInvocationContext(java.lang.Object target,
java.lang.reflect.Method targetMethod,
java.lang.reflect.Method proceed,
java.lang.Object[] parameters)
public SimpleInvocationContext(java.lang.reflect.Constructor<?> constructor,
java.lang.Object[] parameters,
java.util.Map<java.lang.String,java.lang.Object> contextData)
public java.util.Map<java.lang.String,java.lang.Object> getContextData()
getContextData in interface InvocationContextpublic java.lang.reflect.Method getMethod()
getMethod in interface InvocationContextpublic java.lang.Object[] getParameters()
getParameters in interface InvocationContextpublic java.lang.Object getTarget()
getTarget in interface InvocationContextpublic void setParameters(java.lang.Object[] params)
setParameters in interface InvocationContextpublic java.lang.Object getTimer()
getTimer in interface InvocationContextpublic java.lang.reflect.Constructor<?> getConstructor()
getConstructor in interface InvocationContextpublic java.lang.Object proceed()
throws java.lang.Exception
proceed in interface InvocationContextjava.lang.ExceptionCopyright © 2014. All Rights Reserved.