Class JohnzonSerializationContext
- java.lang.Object
-
- org.apache.johnzon.jsonb.serializer.JohnzonSerializationContext
-
- All Implemented Interfaces:
jakarta.json.bind.serializer.SerializationContext
public class JohnzonSerializationContext extends Object implements jakarta.json.bind.serializer.SerializationContext
-
-
Field Summary
Fields Modifier and Type Field Description private MappingGenerator
runtime
-
Constructor Summary
Constructors Constructor Description JohnzonSerializationContext(MappingGenerator runtime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> void
serialize(String key, T object, jakarta.json.stream.JsonGenerator generator)
<T> void
serialize(T object, jakarta.json.stream.JsonGenerator generator)
-
-
-
Field Detail
-
runtime
private final MappingGenerator runtime
-
-
Constructor Detail
-
JohnzonSerializationContext
public JohnzonSerializationContext(MappingGenerator runtime)
-
-
Method Detail
-
serialize
public <T> void serialize(String key, T object, jakarta.json.stream.JsonGenerator generator)
- Specified by:
serialize
in interfacejakarta.json.bind.serializer.SerializationContext
-
serialize
public <T> void serialize(T object, jakarta.json.stream.JsonGenerator generator)
- Specified by:
serialize
in interfacejakarta.json.bind.serializer.SerializationContext
-
-