Package org.springframework.webflow.execution.repository.impl

Examples of org.springframework.webflow.execution.repository.impl.DefaultFlowExecutionRepository


    if (conversionService == null) {
      conversionService = new DefaultConversionService();
    }
    MutableAttributeMap executionAttributes = createFlowExecutionAttributes();
    FlowExecutionImplFactory executionFactory = createFlowExecutionFactory(executionAttributes);
    DefaultFlowExecutionRepository executionRepository = createFlowExecutionRepository(executionFactory);
    executionFactory.setExecutionKeyFactory(executionRepository);
    flowExecutor = new FlowExecutorImpl(flowDefinitionLocator, executionFactory, executionRepository);
  }
View Full Code Here


  }

  private DefaultFlowExecutionRepository createFlowExecutionRepository(FlowExecutionFactory executionFactory) {
    ConversationManager conversationManager = createConversationManager();
    FlowExecutionSnapshotFactory snapshotFactory = createFlowExecutionSnapshotFactory(executionFactory);
    DefaultFlowExecutionRepository rep = new DefaultFlowExecutionRepository(conversationManager, snapshotFactory);
    if (maxFlowExecutionSnapshots != null) {
      rep.setMaxSnapshots(maxFlowExecutionSnapshots.intValue());
    }
    return rep;
  }
View Full Code Here

    if (conversionService == null) {
      conversionService = new DefaultConversionService();
    }
    MutableAttributeMap<Object> executionAttributes = createFlowExecutionAttributes();
    FlowExecutionImplFactory executionFactory = createFlowExecutionFactory(executionAttributes);
    DefaultFlowExecutionRepository executionRepository = createFlowExecutionRepository(executionFactory);
    executionFactory.setExecutionKeyFactory(executionRepository);
    flowExecutor = new FlowExecutorImpl(flowDefinitionLocator, executionFactory, executionRepository);
  }
View Full Code Here

  }

  private DefaultFlowExecutionRepository createFlowExecutionRepository(FlowExecutionFactory executionFactory) {
    ConversationManager conversationManager = createConversationManager();
    FlowExecutionSnapshotFactory snapshotFactory = createFlowExecutionSnapshotFactory(executionFactory);
    DefaultFlowExecutionRepository rep = new DefaultFlowExecutionRepository(conversationManager, snapshotFactory);
    if (maxFlowExecutionSnapshots != null) {
      rep.setMaxSnapshots(maxFlowExecutionSnapshots);
    }
    return rep;
  }
View Full Code Here

  /**
   * Create and return a {@link FlowExecutor} instance.
   */
  public FlowExecutor build() {
    FlowExecutionImplFactory executionFactory = getExecutionFactory();
    DefaultFlowExecutionRepository executionRepository = getFlowExecutionRepository(executionFactory);
    executionFactory.setExecutionKeyFactory(executionRepository);
    return new FlowExecutorImpl(this.flowRegistry, executionFactory, executionRepository);
  }
View Full Code Here

  }

  private DefaultFlowExecutionRepository getFlowExecutionRepository(FlowExecutionFactory executionFactory) {
    ConversationManager manager = getConversationManager();
    FlowExecutionSnapshotFactory snapshotFactory = getSnapshotFactory(executionFactory);
    DefaultFlowExecutionRepository repository = new DefaultFlowExecutionRepository(manager, snapshotFactory);
    if (this.maxFlowExecutionSnapshots != null) {
      repository.setMaxSnapshots((this.maxFlowExecutionSnapshots == 0) ? 1 : this.maxFlowExecutionSnapshots);
    }
    return repository;
  }
View Full Code Here

TOP

Related Classes of org.springframework.webflow.execution.repository.impl.DefaultFlowExecutionRepository

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.