Class ObjectValueSerializer<T>

java.lang.Object
tools.jackson.databind.ValueSerializer<T>
org.springframework.boot.jackson.ObjectValueSerializer<T>
Type Parameters:
T - the supported object type
All Implemented Interfaces:
tools.jackson.databind.jsonFormatVisitors.JsonFormatVisitable

public abstract class ObjectValueSerializer<T> extends tools.jackson.databind.ValueSerializer<T>
Helper base class for ValueSerializer implementations that serialize objects.
Since:
4.0.0
Author:
Phillip Webb
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class tools.jackson.databind.ValueSerializer

    tools.jackson.databind.ValueSerializer.None
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final void
    serialize(T value, tools.jackson.core.JsonGenerator jgen, tools.jackson.databind.SerializationContext context)
     
    protected abstract void
    serializeObject(T value, tools.jackson.core.JsonGenerator jgen, tools.jackson.databind.SerializationContext context)
    Serialize JSON content into the value type this serializer handles.

    Methods inherited from class tools.jackson.databind.ValueSerializer

    acceptJsonFormatVisitor, createContextual, getDelegatee, handledType, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, resolve, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId, withFormatOverrides, withIgnoredProperties

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ObjectValueSerializer

      public ObjectValueSerializer()
  • Method Details

    • serialize

      public final void serialize(T value, tools.jackson.core.JsonGenerator jgen, tools.jackson.databind.SerializationContext context)
      Specified by:
      serialize in class tools.jackson.databind.ValueSerializer<T>
    • serializeObject

      protected abstract void serializeObject(T value, tools.jackson.core.JsonGenerator jgen, tools.jackson.databind.SerializationContext context)
      Serialize JSON content into the value type this serializer handles.
      Parameters:
      value - the source value
      jgen - the JSON generator
      context - the serialization context