Package org.springframework.webflow.conversation

Examples of org.springframework.webflow.conversation.ConversationManager


      }
    }
  }

  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());
    }
View Full Code Here


      executionAttributes.put(REDIRECT_IN_SAME_STATE, redirect);
    }
  }

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

    }
    return executionFactory;
  }

  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);
    }
View Full Code Here

    }
    return repository;
  }

  private ConversationManager getConversationManager() {
    ConversationManager manager = this.conversationManager;
    if (manager == null) {
      manager = new SessionBindingConversationManager();
    }
    if (this.maxFlowExecutions != null && manager instanceof SessionBindingConversationManager) {
      ((SessionBindingConversationManager) manager).setMaxConversations(this.maxFlowExecutions);
View Full Code Here

TOP

Related Classes of org.springframework.webflow.conversation.ConversationManager

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.