Package org.jboss.weld.context.bound

Examples of org.jboss.weld.context.bound.BoundSessionContext.invalidate()


                final Bean<BoundSessionContext> sessionContextBean = (Bean<BoundSessionContext>) manager.resolve(manager.getBeans(
                        BoundSessionContext.class, BoundLiteral.INSTANCE));
                CreationalContext<?> ctx = manager.createCreationalContext(sessionContextBean);
                final BoundSessionContext sessionContext = (BoundSessionContext) manager.getReference(sessionContextBean,
                        BoundSessionContext.class, ctx);
                sessionContext.invalidate();
                sessionContext.deactivate();
                sessionContext.dissociate(sessionContexts.get());

                final Bean<BoundRequestContext> requestContextBean = (Bean<BoundRequestContext>) manager.resolve(manager.getBeans(
                        BoundRequestContext.class, BoundLiteral.INSTANCE));
View Full Code Here


      // TODO deactivate the conversation context
     
      BoundSessionContext sessionContext = instance().select(BoundSessionContext.class).get();
      if (sessionContext.isActive())
      {
         sessionContext.invalidate();
         sessionContext.deactivate();
         sessionContext.dissociate(sessionStore);
      }
     
      bootstrap.shutdown();
View Full Code Here

      CDISessionMap map = sessionMap.get();
      if(map != null)
      {
         try
         {
            sessionContext.invalidate();
            sessionContext.deactivate();
         }
         finally
         {
            sessionContext.dissociate(map);
View Full Code Here

      CDISessionMap map = sessionMap.get();
      if(map != null)
      {
         try
         {
            sessionContext.invalidate();
            sessionContext.deactivate();
         }
         finally
         {
            sessionContext.dissociate(map);
View Full Code Here

                final Bean<BoundSessionContext> sessionContextBean = (Bean<BoundSessionContext>) manager.resolve(manager.getBeans(
                        BoundSessionContext.class, BoundLiteral.INSTANCE));
                CreationalContext<?> ctx = manager.createCreationalContext(sessionContextBean);
                final BoundSessionContext sessionContext = (BoundSessionContext) manager.getReference(sessionContextBean,
                        BoundSessionContext.class, ctx);
                sessionContext.invalidate();
                sessionContext.deactivate();
                sessionContext.dissociate(sessionContexts.get());

                final Bean<BoundRequestContext> requestContextBean = (Bean<BoundRequestContext>) manager.resolve(manager.getBeans(
                        BoundRequestContext.class, BoundLiteral.INSTANCE));
View Full Code Here

      // TODO deactivate the conversation context
     
      BoundSessionContext sessionContext = instance().select(BoundSessionContext.class).get();
      if (sessionContext.isActive())
      {
         sessionContext.invalidate();
         sessionContext.deactivate();
         sessionContext.dissociate(sessionStore);
      }
     
      bootstrap.shutdown();
View Full Code Here

      // TODO deactivate the conversation context
     
      BoundSessionContext sessionContext = instance().select(BoundSessionContext.class).get();
      if (sessionContext.isActive())
      {
         sessionContext.invalidate();
         sessionContext.deactivate();
         sessionContext.dissociate(sessionStore);
      }
     
      bootstrap.shutdown();
View Full Code Here

      CDISessionMap map = sessionMap.get();
      if(map != null)
      {
         try
         {
            sessionContext.invalidate();
            sessionContext.deactivate();
         }
         finally
         {
            sessionContext.dissociate(map);
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.