Class ProcessingContext

java.lang.Object
org.eclipse.yasson.internal.ProcessingContext
Direct Known Subclasses:
DeserializationContextImpl, SerializationContextImpl

public abstract class ProcessingContext extends Object
Jsonb processing (serializing/deserializing) context. Instance is thread bound (in contrast to JsonbContext.
  • Constructor Details

    • ProcessingContext

      public ProcessingContext(JsonbContext jsonbContext)
      Parent for marshaller and unmarshaller.
      Parameters:
      jsonbContext - context of Jsonb
  • Method Details

    • getJsonbContext

      public JsonbContext getJsonbContext()
      Jsonb context.
      Returns:
      jsonb context
    • getMappingContext

      public MappingContext getMappingContext()
      Mapping context.
      Returns:
      mapping context
    • addProcessedObject

      public boolean addProcessedObject(Object object)
      Adds currently processed object to the Set.
      Parameters:
      object - processed object
      Returns:
      if object was added
    • removeProcessedObject

      public boolean removeProcessedObject(Object object)
      Removes processed object from the Set.
      Parameters:
      object - processed object
      Returns:
      if object was removed