Package com.google.code.rees.scope.conversation.context

Examples of com.google.code.rees.scope.conversation.context.ConversationContext


public class ProgrammaticModelDrivenConversationUtil {

    public static <T extends ProgrammaticModelDrivenConversation<?>> void begin(T controller, long maxIdleTime) {
        Object model = controller.getModel();
        for (String conversationName : controller.getConversations()) {
            ConversationContext conversationContext = ConversationUtil.begin(conversationName, maxIdleTime);
            conversationContext.put(conversationName, model);
        }
    }
View Full Code Here


    public static <T extends ProgrammaticModelDrivenConversation<?>> void begin(
            T controller) {
        Object model = controller.getModel();
        for (String conversationName : controller.getConversations()) {
            ConversationContext conversationContext = ConversationUtil
                    .begin(conversationName);
            conversationContext.put(conversationName, model);
        }
    }
View Full Code Here

    HttpConversationContextManagerFactory managerFactory = new DefaultHttpConversationContextManagerFactory();
    managerFactory.setConversationContextFactory(new DefaultConversationContextFactory());
    managerFactory.setMonitoringFrequency(1L);
    managerFactory.init();
    MockConversationAdapter.init(request, managerFactory);
    ConversationContext context = ConversationUtil.getContext(mockConversationName);
    context.addTimeoutListener(this);
    context.setMaxIdleTime(50L);
    try {
      Thread.sleep(2000L);
    } catch (InterruptedException e) {
      e.printStackTrace();
    }
View Full Code Here

TOP

Related Classes of com.google.code.rees.scope.conversation.context.ConversationContext

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.