Class Polymorphic.DeSerializer<T>
- java.lang.Object
-
- org.apache.johnzon.jsonb.extras.polymorphism.Polymorphic.DeSerializer<T>
-
- All Implemented Interfaces:
jakarta.json.bind.serializer.JsonbDeserializer<T>
- Enclosing class:
- Polymorphic
public static class Polymorphic.DeSerializer<T> extends Object implements jakarta.json.bind.serializer.JsonbDeserializer<T>
-
-
Field Summary
Fields Modifier and Type Field Description private ConcurrentMap<String,Type>
classMapping
-
Constructor Summary
Constructors Constructor Description DeSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
deserialize(jakarta.json.stream.JsonParser parser, jakarta.json.bind.serializer.DeserializationContext ctx, Type rtType)
private void
eatStartObject(jakarta.json.stream.JsonParser parser)
private void
eatTypeKey(jakarta.json.stream.JsonParser parser)
private void
eatValueStart(jakarta.json.stream.JsonParser parser)
private void
ensureInit()
private String
getTypeValue(jakarta.json.stream.JsonParser parser)
private void
loadMapping(Type rtType)
-
-
-
Field Detail
-
classMapping
private transient volatile ConcurrentMap<String,Type> classMapping
-
-
Method Detail
-
deserialize
public T deserialize(jakarta.json.stream.JsonParser parser, jakarta.json.bind.serializer.DeserializationContext ctx, Type rtType)
- Specified by:
deserialize
in interfacejakarta.json.bind.serializer.JsonbDeserializer<T>
-
loadMapping
private void loadMapping(Type rtType)
-
eatStartObject
private void eatStartObject(jakarta.json.stream.JsonParser parser)
-
eatTypeKey
private void eatTypeKey(jakarta.json.stream.JsonParser parser)
-
eatValueStart
private void eatValueStart(jakarta.json.stream.JsonParser parser)
-
getTypeValue
private String getTypeValue(jakarta.json.stream.JsonParser parser)
-
ensureInit
private void ensureInit()
-
-