Examples of ISerializedObjectTreeProcessor


Examples of org.wicketstuff.pageserializer.common.analyze.ISerializedObjectTreeProcessor

      }
    };
   
    DirectoryBasedReportOutput reportOutput=new DirectoryBasedReportOutput(tempDirectory("reports"));
   
    ISerializedObjectTreeProcessor treeProcessor = TreeProcessors.listOf(new TypeSizeReport(reportOutput.with(Keys.withNameAndFileExtension("TypeSizeReport", "txt"))),
        new SortedTreeSizeReport(reportOutput.with(Keys.withNameAndFileExtension("SortedTreeSizeReport", "txt"))),
        new RenderTreeProcessor(reportOutput.with(Keys.withNameAndFileExtension("d3js-chart", "html")),new D3DataFileRenderer()),
        new SimilarNodeTreeTransformator(new SortedTreeSizeReport(reportOutput.with(Keys.withNameAndFileExtension("StrippedSortedTreeSizeReport", "txt")))));
    ITreeFilter filter = new ITreeFilter()
    {
      @Override
      public boolean accept(ISerializedObjectTree source, Level current)
      {
        return source.type() != Class.class;
      }
    };
    ISerializedObjectTreeProcessor cleanedTreeProcessor = new TreeTransformator(treeProcessor,
      TreeTransformator.strip(filter));
    ISerializationListener listener = SerializationListeners.listOf(
      new DefaultJavaSerializationValidator(),
      new AnalyzingSerializationListener(labelizer, cleanedTreeProcessor));
View Full Code Here

Examples of org.wicketstuff.pageserializer.common.analyze.ISerializedObjectTreeProcessor

    };

    DirectoryBasedReportOutput reportOutput = new DirectoryBasedReportOutput(
        tempDirectory("reports"));

    ISerializedObjectTreeProcessor treeProcessor = TreeProcessors.listOf(
        new TypeSizeReport(reportOutput.with(Keys.withNameAndFileExtension(
            "TypeSizeReport", "txt"))),
        new SortedTreeSizeReport(reportOutput.with(Keys.withNameAndFileExtension(
            "SortedTreeSizeReport", "txt"))),
        new RenderTreeProcessor(reportOutput.with(Keys.withNameAndFileExtension(
            "d3js-chart", "html")), new D3DataFileRenderer()),
        new SimilarNodeTreeTransformator(new SortedTreeSizeReport(reportOutput.with(Keys
            .withNameAndFileExtension("StrippedSortedTreeSizeReport", "txt")))));
    ITreeFilter filter = new ITreeFilter()
    {
      @Override
      public boolean accept(ISerializedObjectTree source, Level current)
      {
        return source.type() != Class.class;
      }
    };
    ISerializedObjectTreeProcessor cleanedTreeProcessor = new TreeTransformator(treeProcessor,
        TreeTransformator.strip(filter));
    ISerializationListener listener = SerializationListeners
        .listOf(new AnalyzingSerializationListener(labelizer, cleanedTreeProcessor));

    getFrameworkSettings().setSerializer(new FastWicketSerializer().setListener(listener));
View Full Code Here

Examples of org.wicketstuff.pageserializer.common.analyze.ISerializedObjectTreeProcessor

    };

    DirectoryBasedReportOutput reportOutput = new DirectoryBasedReportOutput(
        tempDirectory("reports"));

    ISerializedObjectTreeProcessor treeProcessor = TreeProcessors.listOf(
        new TypeSizeReport(reportOutput.with(Keys.withNameAndFileExtension(
            "TypeSizeReport", "txt"))),
        new SortedTreeSizeReport(reportOutput.with(Keys.withNameAndFileExtension(
            "SortedTreeSizeReport", "txt"))),
        new RenderTreeProcessor(reportOutput.with(Keys.withNameAndFileExtension(
            "d3js-chart", "html")), new D3DataFileRenderer()),
        new SimilarNodeTreeTransformator(new SortedTreeSizeReport(reportOutput.with(Keys
            .withNameAndFileExtension("StrippedSortedTreeSizeReport", "txt")))));
    ITreeFilter filter = new ITreeFilter()
    {
      @Override
      public boolean accept(ISerializedObjectTree source, Level current)
      {
        return source.type() != Class.class;
      }
    };
    ISerializedObjectTreeProcessor cleanedTreeProcessor = new TreeTransformator(treeProcessor,
        TreeTransformator.strip(filter));
    ISerializationListener listener = SerializationListeners
        .listOf(new AnalyzingSerializationListener(labelizer, cleanedTreeProcessor));

    getFrameworkSettings().setSerializer(new Fast2WicketSerializer().setListener(listener));
View Full Code Here

Examples of org.wicketstuff.pageserializer.common.analyze.ISerializedObjectTreeProcessor

      System.out.println("Reports in: "+outputDirectory);

      DirectoryBasedReportOutput output = new DirectoryBasedReportOutput(outputDirectory);
     
      // output of report of type sizes, sorted tree report (by size), aggregated tree
      ISerializedObjectTreeProcessor typeAndSortedTreeAndCollapsedSortedTreeProcessors = TreeProcessors.listOf(
        new TypeSizeReport(output.with(Keys.withNameAndFileExtension("typesize", "txt"))),
        new SortedTreeSizeReport(output.with(Keys.withNameAndFileExtension("treesize", "txt"))),
        new SimilarNodeTreeTransformator(new SortedTreeSizeReport(output.with(Keys.withNameAndFileExtension("sorted-treesize", "txt")))),
        new RenderTreeProcessor(output.with(Keys.withNameAndFileExtension("d3js-chart", "html")),new D3DataFileRenderer()));
View Full Code Here

Examples of org.wicketstuff.pageserializer.common.analyze.ISerializedObjectTreeProcessor

    super.init();
   
    IReportOutput reportOutput=new LoggerReportOutput();

    // output of report of type sizes, sorted tree report (by size), aggregated tree
    ISerializedObjectTreeProcessor typeAndSortedTreeAndCollapsedSortedTreeProcessors = TreeProcessors.listOf(
      new TypeSizeReport(reportOutput), new SortedTreeSizeReport(reportOutput), new SimilarNodeTreeTransformator(
        new SortedTreeSizeReport(reportOutput)));

    // strips class object writes from tree
    TreeTransformator treeProcessors = new TreeTransformator(
View Full Code Here

Examples of org.wicketstuff.pageserializer.common.analyze.ISerializedObjectTreeProcessor

      }
    };
   
    IReportOutput reportOutput=new LoggerReportOutput();

    ISerializedObjectTreeProcessor treeProcessor = TreeProcessors.listOf(new TypeSizeReport(reportOutput),
      new TreeSizeReport(reportOutput), new SortedTreeSizeReport(reportOutput), new SimilarNodeTreeTransformator(
        new SortedTreeSizeReport(reportOutput)));
    ITreeFilter filter = new TypeFilter(Class.class);
    ISerializedObjectTreeProcessor cleanedTreeProcessor = new TreeTransformator(treeProcessor,
      TreeTransformator.strip(filter));
    ISerializationListener listener = SerializationListeners.listOf(
      new DefaultJavaSerializationValidator(), new LoggingSerializationListener(),
      new AnalyzingSerializationListener(labelizer, treeProcessor),
      new AnalyzingSerializationListener(labelizer, cleanedTreeProcessor));
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.