1 package org.weda.action.impl; 2 3 import java.io.Serializable; 4 import org.weda.action.ExecutedActionInfo; 5 6 /** 7 * 8 * @author tim 9 */ 10 public class ExecutedActionInfoImpl 11 implements ExecutedActionInfo, Serializable 12 { 13 public final static ExecutedActionInfoImpl EMPTY_INFO = 14 new ExecutedActionInfoImpl(); 15 16 private Class actionClass; 17 private Class targetClass; 18 private String targetName; 19 private boolean successExecution; 20 private Object actionResult; 21 private Exception executionException; 22 23 static{ 24 EMPTY_INFO.setSuccessExecution(true); 25 } 26 27 public Class getActionClass() { 28 return actionClass; 29 } 30 31 public void setActionClass(Class actionClass) { 32 this.actionClass = actionClass; 33 } 34 35 public Class getTargetClass() { 36 return targetClass; 37 } 38 39 public void setTargetClass(Class targetClass) { 40 this.targetClass = targetClass; 41 } 42 43 public String getTargetName() { 44 return targetName; 45 } 46 47 public void setTargetName(String targetName) { 48 this.targetName = targetName; 49 } 50 51 public boolean isSuccessExecution() { 52 return successExecution; 53 } 54 55 public void setSuccessExecution(boolean successExecution) { 56 this.successExecution = successExecution; 57 } 58 59 public Object getActionResult() { 60 return actionResult; 61 } 62 63 public void setActionResult(Object actionResult) { 64 this.actionResult = actionResult; 65 } 66 67 public Exception getExecutionException() { 68 return executionException; 69 } 70 71 public void setExecutionException(Exception executionException) { 72 this.executionException = executionException; 73 } 74 }