1 23 24 28 29 package com.sun.enterprise.admin.util.proxy; 30 31 import java.lang.reflect.Method ; 32 33 36 public class Call { 37 38 private Method method; 39 private Object [] arguments; 40 private CallState callState = CallState.IN_PROCESS; 41 private Throwable failureReason; 42 private Object result; 43 44 public Call(Method m, Object [] args) { 45 method = m; 46 arguments = args; 47 } 48 49 public Method getMethod() { 50 return method; 51 } 52 53 public Object [] getArguments() { 54 return arguments; 55 } 56 57 public CallState getState() { 58 return callState; 59 } 60 61 public void setState(CallState state) { 62 callState = state; 63 } 64 65 public Object getResult() { 66 return result; 67 } 68 69 public void setResult(Object result) { 70 this.result = result; 71 } 72 73 public Throwable getFailureReason() { 74 return failureReason; 75 } 76 77 public void setFailureReason(Throwable reason) { 78 failureReason = reason; 79 } 80 } 81 | Popular Tags |