Class ReportJsonPostProcessor

  • All Implemented Interfaces:
    io.gsonfire.PostProcessor<Report>

    @Singleton
    public class ReportJsonPostProcessor
    extends Object
    implements io.gsonfire.PostProcessor<Report>
    Post processor for GUICE that adds feature indices, merges background scenarios into scenarios and adds feature information to scenarios.
    • Constructor Detail

      • ReportJsonPostProcessor

        @Inject
        public ReportJsonPostProcessor()
        The default constructor.
    • Method Detail

      • postDeserialize

        public void postDeserialize​(Report report,
                                    com.google.gson.JsonElement jsonElement,
                                    com.google.gson.Gson gson)
        Adds feature indices, merges background scenarios into scenarios and adds feature information to scenarios.
        Specified by:
        postDeserialize in interface io.gsonfire.PostProcessor<Report>
        Parameters:
        report - The Report instance.
        jsonElement - The JsonElement that is being deserialized, unused here.
        gson - The Gson instance for JSON conversion.
      • postSerialize

        public void postSerialize​(com.google.gson.JsonElement jsonElement,
                                  Report report,
                                  com.google.gson.Gson gson)
        Unused post serialize hook.
        Specified by:
        postSerialize in interface io.gsonfire.PostProcessor<Report>
        Parameters:
        jsonElement - The JsonElement that was deserialized.
        report - The Report instance.
        gson - The Gson instance.