Examples of invalidate()


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

                final Bean<BoundConversationContext> conversationContextBean = (Bean<BoundConversationContext>) manager
                        .resolve(manager.getBeans(BoundConversationContext.class, BoundLiteral.INSTANCE));
                ctx = manager.createCreationalContext(conversationContextBean);
                final BoundConversationContext conversationContext = (BoundConversationContext) manager.getReference(
                        conversationContextBean, BoundConversationContext.class, ctx);
                conversationContext.invalidate();
                conversationContext.deactivate();
                conversationContext.dissociate(boundRequests.get());
            }
        } catch (NamingException e) {
            WeldLogger.ROOT_LOGGER.failedToTearDownWeldContexts(e);
View Full Code Here

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

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

Examples of org.jboss.weld.context.ejb.EjbRequestContext.invalidate()

                try {
                    // An event with qualifier @Initialized(RequestScoped.class) is fired when the request context is initialized
                    getBeanManager().getGlobalLenientObserverNotifier().fireEvent(new Object(), InitializedLiteral.REQUEST);
                    return invocation.proceed();
                } finally {
                    requestContext.invalidate();
                    requestContext.deactivate();
                }
            } finally {
                requestContext.dissociate(invocation);
                // An event with qualifier @Destroyed(RequestScoped.class) when the request context is destroyed
View Full Code Here

Examples of org.jboss.weld.context.http.HttpRequestContext.invalidate()

    entity.setId(createId("testID"));
   
    m1.persist(entity);
    assertTrue(m1.contains(entity));
   
    weldContext.invalidate();
    weldContext.deactivate();
   
    if (!weldContext.isActive()){
      weldContext.activate();
    }
View Full Code Here

Examples of org.jruby.util.ByteList.invalidate()

            }

            ByteList line = internal.getByteList().makeShared((int)pos, ix - (int)pos);
            line.unshare();
            line.append(add);
            line.invalidate();
            pos = ix + add.realSize;
            lineno++;

            return RubyString.newString(runtime,line);
        }
View Full Code Here

Examples of org.jwildfire.create.tina.base.XYZPoint.invalidate()

    ini.y = pAffineTP.y;
    ini.z = pAffineTP.z;
    ini.x -= shift_x;
    ini.y -= shift_y;
    //ini.z -= shift_z;
    ini.invalidate();

    /* Convert x and y of point to parametric space,
     noting they are the radius outward in real space. */
    double t = ini.getPrecalcSqrt() / stretch - M_PI / 2;

View Full Code Here

Examples of org.jwildfire.swing.ImagePanel.invalidate()

            ImagePanel imgPnl = (ImagePanel) cmp;
            int width = imgPnl.getBounds().width;
            int height = imgPnl.getBounds().height;
            SimpleImage img = createPartPreview(pPart, width, height);
            imgPnl.setImage(img, imgPnl.getBounds().x, imgPnl.getBounds().y, width);
            imgPnl.invalidate();
            imgPnl.validate();
            pnl.getParent().repaint();
            break;
          }
        }
View Full Code Here

Examples of org.mortbay.jetty.servlet.AbstractSessionManager.Session.invalidate()

            // by the invalidate calls.
            while (_sessions.containsKey(id))
            {
                Session session=(Session)_sessions.getValue(id,0);
                if (session.isValid())
                    session.invalidate();
                else
                    _sessions.removeValue(id,session);
            }
        }
    }
View Full Code Here

Examples of org.openbp.cockpit.modeler.figures.VisualElement.invalidate()

        lastFigure = figure;
        view.setFigureUnderCursor(figure);

        if (figure != null)
        {
          figure.invalidate();
        }
        view.repairDamage();
      }
    }
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.