Examples of pop()


Examples of org.apache.marmotta.ldpath.template.model.freemarker.TemplateStackModel.pop()

                        loopVars[0] = new TemplateNodeModel<Node>(node,backend);
                    }

                    body.render(env.getOut());

                    contextStack.pop();
                }
            } catch(LDPathParseException ex) {
                throw new TemplateException("invalid path for ldpath directive: "+path,ex,env);
            }
View Full Code Here

Examples of org.apache.maven.archiva.dependency.graph.tasks.DependencyManagementStack.pop()

        dep.setScope( "test" );
        node.addDependencyManagement( dep );

        DependencyManagementStack stack = new DependencyManagementStack();
        stack.push( node );
        DependencyGraphNode oldnode = stack.pop();
        assertEquals( "added node to old node", node, oldnode );
    }

    public void testPushPopTwoDeep()
    {
View Full Code Here

Examples of org.apache.maven.scm.provider.accurev.AccuRev.pop()

            {
                // repopulate everything in the workspace.
                // note we do NOT want -t here, we just fill in any missing files
                // to the current transaction watermark...
                // the update later on will get the extra files
                List<File> poppedFiles = accuRev.pop( basedir, null );
                if ( poppedFiles != null )
                {
                    extractedFiles.addAll( poppedFiles );
                }
                else
View Full Code Here

Examples of org.apache.mina.util.ExpiringStack.pop()

        int idx = getBufferStackIndex(bufferStacks, capacity);
        ExpiringStack stack = bufferStacks[idx];

        UnexpandableByteBuffer buf;
        synchronized (stack) {
            buf = (UnexpandableByteBuffer) stack.pop();
        }

        if (buf == null) {
            java.nio.ByteBuffer nioBuf = direct ? java.nio.ByteBuffer
                    .allocateDirect(MINIMUM_CAPACITY << idx)
View Full Code Here

Examples of org.apache.mina.util.Queue.pop()

        mockSession.replay();

        WriteRequest wr = new WriteRequest( new Object() );
        filter.filterWrite( nextFilter, session, wr );
        assertEquals( 1, queue.size() );
        assertSame( wr, queue.pop() );
       
        /*
         * Verify.
         */
        mockNextFilter.verify();
View Full Code Here

Examples of org.apache.mina.util.Stack.pop()

    private static ByteBuffer allocate(int idx) {
        Stack stack = bufferStacks[idx];

        ByteBuffer buf;
        synchronized (stack) {
            buf = (ByteBuffer) stack.pop();
            if (buf == null) {
                buf = createBuffer(bufferStackSizes[idx]);
            }
        }
View Full Code Here

Examples of org.apache.openejb.util.Pool.pop()

        while (true) {
            List<Pool.Entry> entries = new ArrayList<Pool.Entry>();

            try {
                while (true) {
                    entries.add(pool.pop(1, TimeUnit.SECONDS));
                    snooze();
                }
            } catch (TimeoutException e) {
            }
View Full Code Here

Examples of org.apache.openejb.util.Stack.pop()

            }
            if(!acquired){
              throw new IllegalStateException("An invocation of the Stateless Session Bean "+deploymentInfo.getEjbName()+" has timed-out");
            }
        }
        Object bean = pool.pop();

        if (bean == null) {

            Class beanClass = deploymentInfo.getBeanClass();
            ObjectRecipe objectRecipe = new ObjectRecipe(beanClass);
View Full Code Here

Examples of org.apache.pdfbox.preflight.PreflightPath.pop()

        boolean needPop = validationPath.pushObject(element);
        PreflightConfiguration config = context.getConfig();
        ValidationProcess process = config.getInstanceOfProcess(processName);
        process.validate(context);
        if (needPop) {
            validationPath.pop();
        }
    }

    /**
     * call directly the {@link #callValidation(PreflightContext, Object, String)}
View Full Code Here

Examples of org.apache.shale.dialog.Status.pop()

      // TODO: Test this
      Status status = (Status) context.getExternalContext().getSessionMap().
      get(Globals.STATUS);
      if (exec.getCurrentStatus().isFinal()) {
            setDialogExecutor(context, null);
            status.pop();
      } else {
            status.peek().setStateName(getCurrentViewId(exec));
      }
    }
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.