Examples of visit()


Examples of org.apache.lenya.cms.publication.templating.PublicationTemplateManager.visit()

            DocumentFactory factory = DocumentUtil.getDocumentFactory(this.manager, request);
            if (factory.existsPublication(publicationId)) {
                Publication pub = factory.getPublication(publicationId);
                VisitingSourceResolver resolver = getSourceVisitor();
                templateManager.visit(pub, path, resolver);
                source = resolver.getSource();
            }

            if (source == null) {
                if (path.startsWith("lenya/modules/")) {
View Full Code Here

Examples of org.apache.lenya.cms.publication.util.DocumentSet.visit()

            DocumentSet set = new DocumentSet(documents.getDocuments());
            sortAscending(set);
            set.reverse();

            DocumentVisitor visitor = new DeleteVisitor(this);
            set.visit(visitor);
        } catch (ServiceException e) {
            throw new PublicationException(e);
        } finally {
            if (selector != null) {
                if (siteManager != null) {
View Full Code Here

Examples of org.apache.maven.archiva.dependency.graph.walk.DependencyGraphWalker.visit()

    public void executeTask( DependencyGraph graph )
    {
        DependencyGraphWalker walker = new WalkDepthFirstSearch();
        FlagExcludedEdgesVisitor excludedEdgeResolver = new FlagExcludedEdgesVisitor();
        walker.visit( graph, excludedEdgeResolver );
    }

    public String getTaskId()
    {
        return "flag-cyclic-edges";
View Full Code Here

Examples of org.apache.maven.archiva.dependency.graph.walk.WalkBreadthFirstSearch.visit()

    public void executeTask( DependencyGraph graph )
    {
        DependencyGraphWalker walker = new WalkBreadthFirstSearch();
        ReduceTransitiveEdgesVisitor reduceTransitiveEdgesResolver = new ReduceTransitiveEdgesVisitor();
        walker.visit( graph, reduceTransitiveEdgesResolver );
    }

    public String getTaskId()
    {
        return "reduce-transitive-edges";
View Full Code Here

Examples of org.apache.maven.archiva.dependency.graph.walk.WalkDepthFirstSearch.visit()

    public void executeTask( DependencyGraph graph )
    {
        DependencyGraphWalker walker = new WalkDepthFirstSearch();
        FlagExcludedEdgesVisitor excludedEdgeResolver = new FlagExcludedEdgesVisitor();
        walker.visit( graph, excludedEdgeResolver );
    }

    public String getTaskId()
    {
        return "flag-cyclic-edges";
View Full Code Here

Examples of org.apache.maven.shared.dependency.tree.traversal.DependencyNodeVisitor.visit()

        mainNode.addChild( dom4j );
        mainNode.addChild( junit );
        mainNode.addChild( easymock );
        mainNode.addChild( easymockExt );

        control.expectAndReturn( visitor.visit( mainNode ), true );

        control.expectAndReturn( visitor.visit( commonsLang ), true );
        control.expectAndReturn( visitor.endVisit( commonsLang ), true );

        control.expectAndReturn( visitor.visit( commonsIO ), true );
View Full Code Here

Examples of org.apache.openejb.asm.ClassWriter.visit()

        String sourceFileName = factory.substring(factory.lastIndexOf('.')+1, factory.length()) + ".java";

        ClassWriter cw = new ClassWriter(0);
        MethodVisitor mv;

        cw.visit(V1_5, ACC_PUBLIC + ACC_SUPER, classFilePath, null, "java/lang/Object", new String[]{"org/hibernate/transaction/TransactionManagerLookup"});

        cw.visitSource(sourceFileName, null);

        {
            mv = cw.visitMethod(ACC_PUBLIC, "<init>", "()V", null, null);
View Full Code Here

Examples of org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.LimitAdjuster.visit()

      PhysicalPlan pp = Util.buildPp(pigServerMR, query);
      MROperPlan mrPlan = Util.buildMRPlan(pp, pc);

      LimitAdjuster la = new LimitAdjuster(mrPlan, pc);
        la.visit();
        la.adjust();

      MapReduceOper mrOper = mrPlan.getRoots().get(0);
      int count = 1;
View Full Code Here

Examples of org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MRCompiler.LastInputStreamingOptimizer.visit()

        pkgAnnotator.visit();
       
        // optimize joins
        LastInputStreamingOptimizer liso =
            new MRCompiler.LastInputStreamingOptimizer(plan, lastInputChunkSize);
        liso.visit();
       
        // figure out the type of the key for the map plan
        // this is needed when the key is null to create
        // an appropriate NullableXXXWritable object
        KeyTypeDiscoveryVisitor kdv = new KeyTypeDiscoveryVisitor(plan);
View Full Code Here

Examples of org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.SampleOptimizer.visit()

       
        // Before optimizer visits, number of MR jobs = 3.
        assertEquals(3,count);  

        SampleOptimizer so = new SampleOptimizer(mrPlan);
        so.visit();

        count = 1;
        mrOper = mrPlan.getRoots().get(0);
        while(mrPlan.getSuccessors(mrOper) != null) {
            mrOper = mrPlan.getSuccessors(mrOper).get(0);
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.