Class ProcessingContext
java.lang.Object
org.eclipse.yasson.internal.ProcessingContext
- Direct Known Subclasses:
DeserializationContextImpl, SerializationContextImpl
Jsonb processing (serializing/deserializing) context.
Instance is thread bound (in contrast to
JsonbContext.-
Field Summary
FieldsModifier and TypeFieldDescriptionUsed to avoid StackOverflowError, when adapted / serialized object contains instance of its type inside it or when object has recursive reference.private final JsonbContext -
Constructor Summary
ConstructorsConstructorDescriptionProcessingContext(JsonbContext jsonbContext) Parent for marshaller and unmarshaller. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddProcessedObject(Object object) Adds currently processed object to theSet.Jsonb context.Mapping context.booleanremoveProcessedObject(Object object) Removes processed object from theSet.
-
Field Details
-
jsonbContext
-
currentlyProcessedObjects
-
-
Constructor Details
-
ProcessingContext
Parent for marshaller and unmarshaller.- Parameters:
jsonbContext- context of Jsonb
-
-
Method Details
-
getJsonbContext
-
getMappingContext
-
addProcessedObject
-
removeProcessedObject
-