Examples of ConversationManager2


Examples of org.jboss.weld.conversation.ConversationManager2

      else
      {
         context.add(CDIConversationID.class, new CDIConversationID(null));
      }

      ConversationManager2 conversationManager = Utils.getBeanReference(manager, ConversationManager2.class);
      conversationManager.teardownConversation();
   }
View Full Code Here

Examples of org.jboss.weld.conversation.ConversationManager2

      if(manager == null)
      {
         throw new IllegalStateException("No " + WeldManager.class.getName() + " found in context");
      }
     
      ConversationManager2 conversationManager = Utils.getBeanReference(manager, ConversationManager2.class);     
      CDIConversationID id = context.get(CDIConversationID.class);
      if(id == null)
      {
         id = new CDIConversationID(null); // when null creates a new empty conversation id.
      }
     
      if(!conversationManager.isContextActive())
      {
         conversationManager.setupContext();
      }
      conversationManager.setupConversation(id.getId());
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.