| com.tc.common.proxy.MethodInvocationEvent
All known Subclasses: com.tc.common.proxy.MockMethodInvocationEvent, com.tc.common.proxy.MethodInvocationEventImpl,
MethodInvocationEvent | public interface MethodInvocationEvent (Code) | | An method invocation event fired by Proxy instances created with MethodMonitorProxy. The event is delivered AFTER the
method has executed, but before the caller receives any thrown exceptions
|
getArguments | public Object[] getArguments()(Code) | | The arguments to the method invocation NOTE: These may be live references to the method arguments. You are NOT
advised to modify the state of any of these parameters
|
getException | public Throwable getException()(Code) | | The exception (if any) thrown by this method invocation. The value of this method may be null (indficating the lack
of a thrown exception)
|
getExecutionEndTime | public long getExecutionEndTime()(Code) | | The end time of the method invocation as measured by System.currentTimeMillis();
|
getExecutionStartTime | public long getExecutionStartTime()(Code) | | The start time of the method invocation as measured by System.currentTimeMillis();
|
getInvokedObject | public Object getInvokedObject()(Code) | | the object upon which the method was invoked. |
getMethod | public Method getMethod()(Code) | | The Method that was invoked
|
getReturnValue | public Object getReturnValue()(Code) | | The return value of the method invocation. A return value of null can either mean a true "null" return value, or
that an exception is being thrown (ie. you should always be checking getException() before getReturnValue()).
Additioanlly, a null value here may be the result of the return type of the method being Void.TYPE
NOTE: You really don't want to be mucking with the return value, but nothing is stopping you
|
|
|