Package org.jboss.weld.context.bound

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


                final Bean<BoundRequestContext> requestContextBean = (Bean<BoundRequestContext>) manager.resolve(manager.getBeans(
                        BoundRequestContext.class, BoundLiteral.INSTANCE));
                ctx = manager.createCreationalContext(requestContextBean);
                final BoundRequestContext requestContext = (BoundRequestContext) manager.getReference(requestContextBean,
                        BoundRequestContext.class, ctx);
                requestContext.invalidate();
                requestContext.deactivate();
                requestContext.dissociate(requestContexts.get());

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


            requestContext.associate(context);
            requestContext.activate();

            D.inject(task.getExecutorBeanClass()).execute(task);
        } finally {
            requestContext.invalidate();
            requestContext.deactivate();
            requestContext.dissociate(context);
        }
    }
}
View Full Code Here

      CDIRequestMap map = requestMap.get();
      if (map != null)
      {
         try
         {
            requestContext.invalidate();
            requestContext.deactivate();
         }
         finally
         {
            requestContext.dissociate(map);
View Full Code Here

        try {
            requestContext.associate(context);
            requestContext.activate();
            function.run();
        } finally {
            requestContext.invalidate();
            requestContext.deactivate();
            requestContext.dissociate(context);
        }
    }
View Full Code Here

      CDIRequestMap map = requestMap.get();
      if (map != null)
      {
         try
         {
            requestContext.invalidate();
            requestContext.deactivate();
         }
         finally
         {
            requestContext.dissociate(map);
View Full Code Here

        {
            super.service(ctx, request,response,handleNotFound);
        }
        finally
        {
            context.invalidate();
            context.deactivate();
            context.dissociate(contextMap);
        }
    }
}
View Full Code Here

                final Bean<BoundRequestContext> requestContextBean = (Bean<BoundRequestContext>) manager.resolve(manager.getBeans(
                        BoundRequestContext.class, BoundLiteral.INSTANCE));
                ctx = manager.createCreationalContext(requestContextBean);
                final BoundRequestContext requestContext = (BoundRequestContext) manager.getReference(requestContextBean,
                        BoundRequestContext.class, ctx);
                requestContext.invalidate();
                requestContext.deactivate();
                requestContext.dissociate(requestContexts.get());

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

      CDIRequestMap map = requestMap.get();
      if (map != null)
      {
         try
         {
            requestContext.invalidate();
            requestContext.deactivate();
         }
         finally
         {
            requestContext.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.