Class JacksonSnapshotSerializer

java.lang.Object
au.com.origin.snapshots.jackson.serializers.v1.JacksonSnapshotSerializer
All Implemented Interfaces:
au.com.origin.snapshots.serializers.SnapshotSerializer, BiFunction<Object,au.com.origin.snapshots.SnapshotSerializerContext,au.com.origin.snapshots.Snapshot>
Direct Known Subclasses:
DeterministicJacksonSnapshotSerializer, JacksonSnapshotSerializer

public class JacksonSnapshotSerializer extends Object implements au.com.origin.snapshots.serializers.SnapshotSerializer
  • Constructor Details

    • JacksonSnapshotSerializer

      public JacksonSnapshotSerializer()
  • Method Details

    • configure

      public void configure(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
      Override to customize the Jackson objectMapper
      Parameters:
      objectMapper - existing ObjectMapper
    • shouldFindAndRegisterModules

      protected boolean shouldFindAndRegisterModules()
      Override to control the registration of all available jackson modules within the classpath which are locatable via JDK ServiceLoader facility, along with module-provided SPI.
    • apply

      public au.com.origin.snapshots.Snapshot apply(Object object, au.com.origin.snapshots.SnapshotSerializerContext gen)
      Specified by:
      apply in interface BiFunction<Object,au.com.origin.snapshots.SnapshotSerializerContext,au.com.origin.snapshots.Snapshot>
    • getOutputFormat

      public String getOutputFormat()
      Specified by:
      getOutputFormat in interface au.com.origin.snapshots.serializers.SnapshotSerializer