1 16 package org.springframework.webflow.executor.jsf; 17 18 import java.io.Serializable ; 19 20 import org.springframework.core.style.ToStringCreator; 21 import org.springframework.webflow.execution.FlowExecution; 22 import org.springframework.webflow.execution.ViewSelection; 23 import org.springframework.webflow.execution.repository.FlowExecutionKey; 24 25 31 public class FlowExecutionHolder implements Serializable { 32 33 39 private FlowExecutionKey flowExecutionKey; 40 41 45 private FlowExecution flowExecution; 46 47 private ViewSelection viewSelection; 48 49 private boolean needsSave; 50 51 56 public FlowExecutionHolder(FlowExecution flowExecution) { 57 this.flowExecution = flowExecution; 58 } 59 60 65 public FlowExecutionHolder(FlowExecutionKey flowExecutionKey, FlowExecution flowExecution) { 66 this.flowExecutionKey = flowExecutionKey; 67 this.flowExecution = flowExecution; 68 } 69 70 73 public FlowExecutionKey getFlowExecutionKey() { 74 return flowExecutionKey; 75 } 76 77 80 public void setFlowExecutionKey(FlowExecutionKey continuationKey) { 81 this.flowExecutionKey = continuationKey; 82 } 83 84 87 public FlowExecution getFlowExecution() { 88 return flowExecution; 89 } 90 91 public ViewSelection getViewSelection() { 92 return viewSelection; 93 } 94 95 public void setViewSelection(ViewSelection viewSelection) { 96 this.viewSelection = viewSelection; 97 } 98 99 public boolean needsSave() { 100 return needsSave; 101 } 102 103 public void markNeedsSave() { 104 this.needsSave = true; 105 } 106 107 public String toString() { 108 return new ToStringCreator(this).append("flowExecutionKey", flowExecutionKey).append("flowExecution", 109 flowExecution).toString(); 110 } 111 } | Popular Tags |