public class ReflectionInvocationContext
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static class |
ReflectionInvocationContext.ConstructorInvocation |
protected static class |
ReflectionInvocationContext.Invocation |
Constructor and Description |
---|
ReflectionInvocationContext(Operation operation,
java.util.List<Interceptor> interceptors,
java.lang.Object target,
java.lang.reflect.Method method,
java.lang.reflect.Constructor constructor,
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() |
protected ReflectionInvocationContext.Invocation |
next() |
java.lang.Object |
proceed() |
void |
setParameters(java.lang.Object[] parameters) |
java.lang.String |
toString() |
protected java.lang.Exception |
unwrapInvocationTargetException(java.lang.reflect.InvocationTargetException e)
Business method interceptors can only throw exception allowed by the target business method.
|
public ReflectionInvocationContext(Operation operation, java.util.List<Interceptor> interceptors, java.lang.Object target, java.lang.reflect.Method method, java.lang.reflect.Constructor constructor, java.lang.Object... parameters)
public java.lang.Object getTimer()
public java.lang.Object getTarget()
public java.lang.reflect.Method getMethod()
public java.lang.reflect.Constructor<?> getConstructor()
public java.lang.Object[] getParameters()
public void setParameters(java.lang.Object[] parameters)
public java.util.Map<java.lang.String,java.lang.Object> getContextData()
protected ReflectionInvocationContext.Invocation next()
public java.lang.Object proceed() throws java.lang.Exception
java.lang.Exception
protected java.lang.Exception unwrapInvocationTargetException(java.lang.reflect.InvocationTargetException e)
e
- the invocation target exception of a reflection method invokejava.lang.AssertionError
- if the cause is not an Exception or Error.public java.lang.String toString()
toString
in class java.lang.Object