Package org.eclipse.yasson.internal
Class ProcessingContext
- java.lang.Object
-
- org.eclipse.yasson.internal.ProcessingContext
-
- Direct Known Subclasses:
Marshaller,Unmarshaller
public abstract class ProcessingContext extends java.lang.ObjectJsonb processing (serializing/deserializing) context. Instance is thread bound (in contrast toJsonbContext.
-
-
Constructor Summary
Constructors Constructor Description ProcessingContext(JsonbContext jsonbContext)Parent instance for marshaller and unmarshaller.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddProcessedObject(java.lang.Object object)Adds currently processed object to theSet.JsonbContextgetJsonbContext()Jsonb context.MappingContextgetMappingContext()Mapping context.booleanremoveProcessedObject(java.lang.Object object)Removes processed object from theSet.
-
-
-
Constructor Detail
-
ProcessingContext
public ProcessingContext(JsonbContext jsonbContext)
Parent instance for marshaller and unmarshaller.- Parameters:
jsonbContext- context of Jsonb
-
-
Method Detail
-
getJsonbContext
public JsonbContext getJsonbContext()
Jsonb context.- Returns:
- jsonb context
-
getMappingContext
public MappingContext getMappingContext()
Mapping context.- Returns:
- mapping context
-
addProcessedObject
public boolean addProcessedObject(java.lang.Object object)
Adds currently processed object to theSet.- Parameters:
object- processed object- Returns:
- if object was added
-
removeProcessedObject
public boolean removeProcessedObject(java.lang.Object object)
Removes processed object from theSet.- Parameters:
object- processed object- Returns:
- if object was removed
-
-