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 -
Method Summary
Modifier and TypeMethodDescriptionfinal 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
-
Constructor Details
-
ObjectValueSerializer
public ObjectValueSerializer()
-
-
Method Details
-
serialize
-
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 valuejgen
- the JSON generatorcontext
- the serialization context
-