Package org.springframework.webflow.engine.support

Examples of org.springframework.webflow.engine.support.DefaultTargetStateResolver


  protected TransitionCriteria on(String event) {
    return new MockTransitionCriteria(event);
  }

  protected TargetStateResolver to(String stateId) {
    return new DefaultTargetStateResolver(stateId);
  }
View Full Code Here


  FlowExecutionImplFactory executionFactory = new FlowExecutionImplFactory();

  protected void setUp() throws Exception {
    flow = new Flow("myFlow");
    ViewState s1 = new ViewState(flow, "state", new StubViewFactory());
    s1.getTransitionSet().add(new Transition(new DefaultTargetStateResolver("state2")));
    new ViewState(flow, "state2", new StubViewFactory());

    conversationManager = new StubConversationManager();
    FlowDefinitionLocator locator = new FlowDefinitionLocator() {
      public FlowDefinition getFlowDefinition(String flowId) throws NoSuchFlowDefinitionException,
View Full Code Here

  protected static TransitionCriteria on(String event) {
    return new MockTransitionCriteria(event);
  }

  protected static TargetStateResolver to(String stateId) {
    return new DefaultTargetStateResolver(stateId);
  }
View Full Code Here

    assertFalse(exitCalled);
    assertSame(source, context.getCurrentState());
  }

  protected TargetStateResolver to(String stateId) {
    return new DefaultTargetStateResolver(stateId);
  }
View Full Code Here

    factoryBean.setFlowDefinitionLocator(new FlowDefinitionLocator() {
      public FlowDefinition getFlowDefinition(String id) throws NoSuchFlowDefinitionException,
          FlowDefinitionConstructionException {
        Flow flow = new Flow(id);
        ViewState view = new ViewState(flow, "view", new StubViewFactory());
        view.getTransitionSet().add(new Transition(new DefaultTargetStateResolver("end")));
        new EndState(flow, "end");
        return flow;
      }
    });
    factoryBean.afterPropertiesSet();
View Full Code Here

    factoryBean.setFlowDefinitionLocator(new FlowDefinitionLocator() {
      public FlowDefinition getFlowDefinition(String id) throws NoSuchFlowDefinitionException,
          FlowDefinitionConstructionException {
        Flow flow = new Flow(id);
        ViewState view = new ViewState(flow, "view", new StubViewFactory());
        view.getTransitionSet().add(new Transition(new DefaultTargetStateResolver("end")));
        new EndState(flow, "end");
        return flow;
      }
    });
    Set<FlowElementAttribute> attributes = new HashSet<FlowElementAttribute>();
View Full Code Here

      return null;
    }
    ExpressionParser parser = flowBuilderContext.getExpressionParser();
    Expression expression = parser.parseExpression(targetStateId,
        new FluentParserContext().template().evaluate(RequestContext.class).expectResult(String.class));
    return new DefaultTargetStateResolver(expression);

  }
View Full Code Here

TOP

Related Classes of org.springframework.webflow.engine.support.DefaultTargetStateResolver

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.