Class ProcessingContext

  • Direct Known Subclasses:
    Marshaller, Unmarshaller

    public abstract class ProcessingContext
    extends java.lang.Object
    Jsonb processing (serializing/deserializing) context. Instance is thread bound (in contrast to JsonbContext.
    • 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 the Set.
        Parameters:
        object - processed object
        Returns:
        if object was added
      • removeProcessedObject

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