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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionau.com.origin.snapshots.Snapshotvoidconfigure(com.fasterxml.jackson.databind.ObjectMapper objectMapper) Override to customize the Jackson objectMapperprotected booleanOverride to control the registration of all available jackson modules within the classpath which are locatable via JDK ServiceLoader facility, along with module-provided SPI.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunction
andThen
-
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:
applyin interfaceBiFunction<Object,au.com.origin.snapshots.SnapshotSerializerContext, au.com.origin.snapshots.Snapshot>
-
getOutputFormat
- Specified by:
getOutputFormatin interfaceau.com.origin.snapshots.serializers.SnapshotSerializer
-