Package org.springframework.webflow.engine.model.registry

Examples of org.springframework.webflow.engine.model.registry.FlowModelHolder


    Flow flow = assembler.assembleFlow();
    assertEquals(1, flow.getExceptionHandlerSet().size());
  }

  private Flow getFlow(FlowModel model) {
    FlowModelHolder holder = new StaticFlowModelHolder(model);
    FlowModelFlowBuilder builder = new FlowModelFlowBuilder(holder);
    FlowAssembler assembler = new FlowAssembler(builder, new MockFlowBuilderContext("flow"));
    return assembler.assembleFlow();
  }
View Full Code Here


    FlowAssembler assembler = new FlowAssembler(builder, new MockFlowBuilderContext("flow"));
    return assembler.assembleFlow();
  }

  private Flow getFlow(ClassPathResource resource) {
    FlowModelHolder holder = new DefaultFlowModelHolder(new XmlFlowModelBuilder(resource,
        new FlowModelRegistryImpl()));
    FlowModelFlowBuilder builder = new FlowModelFlowBuilder(holder);
    FlowAssembler assembler = new FlowAssembler(builder, new MockFlowBuilderContext("flow"));
    return assembler.assembleFlow();
  }
View Full Code Here

  }

  protected final FlowBuilder createFlowBuilder(FlowDefinitionResource resource) {
    registerDependentFlowModels();
    FlowModelBuilder modelBuilder = new XmlFlowModelBuilder(resource.getPath(), flowModelRegistry);
    FlowModelHolder modelHolder = new DefaultFlowModelHolder(modelBuilder);
    flowModelRegistry.registerFlowModel(resource.getId(), modelHolder);
    return new FlowModelFlowBuilder(modelHolder) {
      protected void registerFlowBeans(ConfigurableBeanFactory flowBeanFactory) {
        registerMockFlowBeans(flowBeanFactory);
      }
View Full Code Here

  private FlowBuilder createFlowBuilder(FlowDefinitionResource resource) {
    return new FlowModelFlowBuilder(createFlowModelHolder(resource));
  }

  private FlowModelHolder createFlowModelHolder(FlowDefinitionResource resource) {
    FlowModelHolder modelHolder = new DefaultFlowModelHolder(createFlowModelBuilder(resource));
    // register the flow model holder with the backing flow model registry - this is needed to support flow model
    // merging during the flow build process
    flowRegistry.getFlowModelRegistry().registerFlowModel(resource.getId(), modelHolder);
    return modelHolder;
  }
View Full Code Here

      return new int[] { 1, 2 };
    }
  }

  private Flow getFlow(FlowModel model) {
    FlowModelHolder holder = new StaticFlowModelHolder(model);
    FlowModelFlowBuilder builder = new FlowModelFlowBuilder(holder);
    FlowAssembler assembler = new FlowAssembler(builder, new MockFlowBuilderContext("flow"));
    return assembler.assembleFlow();
  }
View Full Code Here

    FlowAssembler assembler = new FlowAssembler(builder, new MockFlowBuilderContext("flow"));
    return assembler.assembleFlow();
  }

  private Flow getFlow(ClassPathResource resource) {
    FlowModelHolder holder = new DefaultFlowModelHolder(new XmlFlowModelBuilder(resource,
        new FlowModelRegistryImpl()));
    FlowModelFlowBuilder builder = new FlowModelFlowBuilder(holder);
    FlowAssembler assembler = new FlowAssembler(builder, new MockFlowBuilderContext("flow"));
    return assembler.assembleFlow();
  }
View Full Code Here

      flowModelBuilder = new XmlFlowModelBuilder(resource.getPath(), flowRegistry.getFlowModelRegistry());
    } else {
      throw new IllegalArgumentException(resource
          + " is not a supported resource type; supported types are [.xml]");
    }
    FlowModelHolder flowModelHolder = new DefaultFlowModelHolder(flowModelBuilder);
    FlowBuilder flowBuilder = new FlowModelFlowBuilder(flowModelHolder);
    FlowBuilderContext builderContext = new FlowBuilderContextImpl(
        resource.getId(), resource.getAttributes(), flowRegistry, this.flowBuilderServices);
    FlowAssembler assembler = new FlowAssembler(flowBuilder, builderContext);
    DefaultFlowHolder flowHolder = new DefaultFlowHolder(assembler);
View Full Code Here

  }

  protected final FlowBuilder createFlowBuilder(FlowDefinitionResource resource) {
    registerDependentFlowModels();
    FlowModelBuilder modelBuilder = new XmlFlowModelBuilder(resource.getPath(), flowModelRegistry);
    FlowModelHolder modelHolder = new DefaultFlowModelHolder(modelBuilder);
    flowModelRegistry.registerFlowModel(resource.getId(), modelHolder);
    return new FlowModelFlowBuilder(modelHolder) {
      protected void registerFlowBeans(ConfigurableBeanFactory flowBeanFactory) {
        registerMockFlowBeans(flowBeanFactory);
      }
View Full Code Here

  private FlowBuilder createFlowBuilder(FlowDefinitionResource resource) {
    return new FlowModelFlowBuilder(createFlowModelHolder(resource));
  }

  private FlowModelHolder createFlowModelHolder(FlowDefinitionResource resource) {
    FlowModelHolder modelHolder = new DefaultFlowModelHolder(createFlowModelBuilder(resource));
    // register the flow model holder with the backing flow model registry - this is needed to support flow model
    // merging during the flow build process
    flowRegistry.getFlowModelRegistry().registerFlowModel(resource.getId(), modelHolder);
    return modelHolder;
  }
View Full Code Here

TOP

Related Classes of org.springframework.webflow.engine.model.registry.FlowModelHolder

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.