Class Polymorphic.Serializer<T>
- java.lang.Object
-
- org.apache.johnzon.jsonb.extras.polymorphism.Polymorphic.Serializer<T>
-
- All Implemented Interfaces:
jakarta.json.bind.serializer.JsonbSerializer<T>
- Enclosing class:
- Polymorphic
public static class Polymorphic.Serializer<T> extends Object implements jakarta.json.bind.serializer.JsonbSerializer<T>
-
-
Field Summary
Fields Modifier and Type Field Description private ConcurrentMap<Class<?>,String>
idMapping
-
Constructor Summary
Constructors Constructor Description Serializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
ensureInit()
private String
getOrLoadId(T obj)
void
serialize(T obj, jakarta.json.stream.JsonGenerator generator, jakarta.json.bind.serializer.SerializationContext ctx)
-
-
-
Field Detail
-
idMapping
private transient volatile ConcurrentMap<Class<?>,String> idMapping
-
-