Package org.springframework.webflow.engine.model.builder

Examples of org.springframework.webflow.engine.model.builder.DefaultFlowModelHolder


  }

  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 void registerDependentFlowModels() {
    FlowDefinitionResource[] modelResources = getModelResources(getResourceFactory());
    if (modelResources != null) {
      for (FlowDefinitionResource modelResource : modelResources) {
        FlowModelBuilder modelBuilder = new XmlFlowModelBuilder(modelResource.getPath(), flowModelRegistry);
        flowModelRegistry.registerFlowModel(modelResource.getId(), new DefaultFlowModelHolder(modelBuilder));
      }
    }
  }
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.builder.DefaultFlowModelHolder

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.