public void restoreVariables(RequestContext context) { for (FlowVariable variable : variables.values()) { if (logger.isDebugEnabled()) { logger.debug("Restoring " + variable); } variable.restore(context); } }
public void restoreVariables(RequestContext context) { for (FlowVariable variable : variables.values()) { if (logger.isDebugEnabled()) { logger.debug("Restoring " + variable); } variable.restore(context); } }
public void restoreVariables(RequestContext context) { Iterator it = variables.values().iterator(); while (it.hasNext()) { FlowVariable variable = (FlowVariable) it.next(); if (logger.isDebugEnabled()) { logger.debug("Restoring " + variable); } variable.restore(context); } }
public void testRestoreVariable() { FlowVariable var = new FlowVariable("foo", new VariableValueFactory() { public Object createInitialValue(RequestContext context) { return "bar"; } public void restoreReferences(Object value, RequestContext context) { restoreCalled = true; assertEquals("bar", value); } }); MockRequestContext context = new MockRequestContext(); var.create(context); var.restore(context); assertEquals("bar", context.getFlowScope().get("foo")); assertTrue(restoreCalled); }