Examples of markForDeletion()


Examples of com.ettrema.mail.Message.markForDeletion()

    public void dele(IoSession session, PopSession popSession, String[] args) {
        String sNum = args[1];
        int num = Integer.parseInt(sNum);
        Message mid = get(popSession, num);
        if (mid != null) {
            mid.markForDeletion();
            popSession.reply(session, "+OK");
            return;
        } else {
            popSession.reply(session, "-ERR no such message");
        }
View Full Code Here

Examples of com.stimulus.util.TempFiles.markForDeletion()

   */
  private void thresholdReached(int current, int predicted) throws IOException
  {
    this.outFile = File.createTempFile(TMPFILE_PREFIX, TMPFILE_SUFFIX);
    TempFiles tempFiles = Config.getFileSystem().getTempFiles();
    tempFiles.markForDeletion(outFile);
    if (log.isDebugEnabled())
      log.debug("Writing message to file : " + outFile.getAbsoluteFile().getName());
    this.stream = new FileOutputStream(this.outFile);

    this.stream.write(this.buffer.array());
View Full Code Here

Examples of org.apache.myfaces.view.facelets.FaceletCompositionContext.markForDeletion()

            // mark all children for cleaning
            if (log.isLoggable(Level.FINE))
            {
                log.fine(_delegate.getTag() + " Component[" + id + "] Found, marking children for cleanup");
            }
            mctx.markForDeletion(c);
        }
        else
        {
            c = this.createComponent(ctx);
            if (log.isLoggable(Level.FINE))
View Full Code Here

Examples of org.apache.myfaces.view.facelets.FaceletCompositionContext.markForDeletion()

                ctx.getFaceletCompositionContext().pushUniqueIdVendorToStack((UniqueIdVendor) parent);
                pushedUniqueIdVendor = true;
            }
           
            this.refresh(parent);
            myFaceletContext.markForDeletion(parent);
            _root.apply(ctx, parent);
            myFaceletContext.finalizeForDeletion(parent);
            this.markApplied(parent);
           
            // remove the UniqueIdVendor from the stack again
View Full Code Here

Examples of org.apache.myfaces.view.facelets.FaceletCompositionContext.markForDeletion()

                mctx.pushUniqueIdVendorToStack((UniqueIdVendor) parent);
                pushedUniqueIdVendor = true;
            }
           
            this.refresh(parent);
            mctx.markForDeletion(parent);
            DefaultFaceletContext ctxWrapper = new DefaultFaceletContext( (DefaultFaceletContext)ctx, f, true);
            //Update FACELET_CONTEXT_KEY on FacesContext attribute map, to
            //reflect the current facelet context instance
            ctx.getFacesContext().getAttributes().put(FaceletContext.FACELET_CONTEXT_KEY, ctxWrapper);
            f._root.apply(ctxWrapper, parent);
View Full Code Here

Examples of org.apache.myfaces.view.facelets.FaceletCompositionContext.markForDeletion()

            boolean componentFound = false;
            if (c != null)
            {
                componentFound = true;
                // mark all children for cleaning
                mctx.markForDeletion(c);
            }
            else
            {
                Instruction[] applied;
                if (this.literal)
View Full Code Here

Examples of org.apache.myfaces.view.facelets.FaceletCompositionContext.markForDeletion()

            // mark all children for cleaning
            if (log.isLoggable(Level.FINE))
            {
                log.fine(_delegate.getTag() + " Component[" + id + "] Found, marking children for cleanup");
            }
            mctx.markForDeletion(c);
        }
        else
        {
            c = this.createComponent(ctx);
            if (log.isLoggable(Level.FINE))
View Full Code Here

Examples of org.apache.myfaces.view.facelets.FaceletCompositionContext.markForDeletion()

            // mark all children for cleaning
            if (log.isLoggable(Level.FINE))
            {
                log.fine(_delegate.getTag() + " Component[" + id + "] Found, marking children for cleanup");
            }
            mctx.markForDeletion(c);
        }
        else
        {
            c = this.createComponent(ctx);
            if (log.isLoggable(Level.FINE))
View Full Code Here

Examples of org.apache.myfaces.view.facelets.FaceletCompositionContext.markForDeletion()

            }

            // The call for mctx.markForDeletion(c) is always necessary, because
            // component resource relocation occur as an effect of PostAddToViewEvent,
            // so at this point it is unknown if the component was relocated or not.
            mctx.markForDeletion(c);

            if (_relocatableResourceHandler != null)
            {
                mctx.markRelocatableResourceForDeletion(c);
            }
View Full Code Here

Examples of org.apache.myfaces.view.facelets.FaceletCompositionContext.markForDeletion()

            }

            // The call for mctx.markForDeletion(c) is always necessary, because
            // component resource relocation occur as an effect of PostAddToViewEvent,
            // so at this point it is unknown if the component was relocated or not.
            mctx.markForDeletion(c);

            if (_relocatableResourceHandler != null)
            {
                mctx.markRelocatableResourceForDeletion(c);
            }
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.