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
Used to avoid StackOverflowError, when adapted / serialized object contains instance of its type inside it or when object has recursive reference.
-
-
Constructor Details
-
ProcessingContext
Parent for marshaller and unmarshaller.- Parameters:
jsonbContext- context of Jsonb
-
-
Method Details
-
getJsonbContext
Jsonb context.- Returns:
- jsonb context
-
getMappingContext
Mapping context.- Returns:
- mapping context
-
addProcessedObject
Adds currently processed object to theSet.- Parameters:
object- processed object- Returns:
- if object was added
-
removeProcessedObject
Removes processed object from theSet.- Parameters:
object- processed object- Returns:
- if object was removed
-