Package org.jboss.weld.context

Examples of org.jboss.weld.context.RequestContext.deactivate()


   {
      RequestContext requestContext = instance().select(RequestContext.class, UnboundLiteral.INSTANCE).get();
      if (requestContext.isActive())
      {
         requestContext.invalidate();
         requestContext.deactivate();
      }
     
      // TODO deactivate the conversation context
     
      BoundSessionContext sessionContext = instance().select(BoundSessionContext.class).get();
View Full Code Here


            try {
                context.activate();
                getProducer().postConstruct(instance);
            } finally {
                context.invalidate();
                context.deactivate();
            }
        }
        return instance;
    }
View Full Code Here

                try {
                    requestContext.activate();
                    execute();
                } finally {
                    requestContext.invalidate();
                    requestContext.deactivate();
                }
            }
        }

        private boolean isRequestContextActive() {
View Full Code Here

   {
      RequestContext requestContext = instance().select(RequestContext.class, UnboundLiteral.INSTANCE).get();
      if (requestContext.isActive())
      {
         requestContext.invalidate();
         requestContext.deactivate();
      }
     
      // TODO deactivate the conversation context
     
      BoundSessionContext sessionContext = instance().select(BoundSessionContext.class).get();
View Full Code Here

   {
      RequestContext requestContext = instance().select(RequestContext.class, UnboundLiteral.INSTANCE).get();
      if (requestContext.isActive())
      {
         requestContext.invalidate();
         requestContext.deactivate();
      }
     
      // TODO deactivate the conversation context
     
      BoundSessionContext sessionContext = instance().select(BoundSessionContext.class).get();
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.