1 4 package com.tc.common.proxy; 5 6 import java.lang.reflect.Method ; 7 8 11 class MethodInvocationEventImpl implements MethodInvocationEvent { 12 private final long executionStartTime; 13 private final long executionEndTime; 14 private final Method method; 15 private final Object [] args; 16 private final Throwable exception; 17 private final Object returnValue; 18 private final Object invokedObject; 19 20 public MethodInvocationEventImpl(long executionStart, long executionEnd, Object invokedObj, Method method, Object [] args, Throwable exception, Object returnValue) { 21 this.executionStartTime = executionStart; 22 this.executionEndTime = executionEnd; 23 this.method = method; 24 this.args = args; 25 this.exception = exception; 26 this.returnValue = returnValue; 27 this.invokedObject = invokedObj; 28 } 29 30 public Method getMethod() { 31 return method; 32 } 33 34 public Object [] getArguments() { 35 return args; 36 } 37 38 public long getExecutionStartTime() { 39 return executionStartTime; 40 } 41 42 public long getExecutionEndTime() { 43 return executionEndTime; 44 } 45 46 public Throwable getException() { 47 return exception; 48 } 49 50 public Object getReturnValue() { 51 return returnValue; 52 } 53 54 public Object getInvokedObject() { 55 return invokedObject; 56 } 57 } | Popular Tags |