Class JohnzonSerializationContext

java.lang.Object
org.apache.johnzon.jsonb.serializer.JohnzonSerializationContext
All Implemented Interfaces:
jakarta.json.bind.serializer.SerializationContext

public class JohnzonSerializationContext extends Object implements jakarta.json.bind.serializer.SerializationContext
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final org.apache.johnzon.mapper.MappingGenerator
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    JohnzonSerializationContext(org.apache.johnzon.mapper.MappingGenerator runtime)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> void
    serialize(String key, T object, jakarta.json.stream.JsonGenerator generator)
     
    <T> void
    serialize(T object, jakarta.json.stream.JsonGenerator generator)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • runtime

      private final org.apache.johnzon.mapper.MappingGenerator runtime
  • Constructor Details

    • JohnzonSerializationContext

      public JohnzonSerializationContext(org.apache.johnzon.mapper.MappingGenerator runtime)
  • Method Details

    • serialize

      public <T> void serialize(String key, T object, jakarta.json.stream.JsonGenerator generator)
      Specified by:
      serialize in interface jakarta.json.bind.serializer.SerializationContext
    • serialize

      public <T> void serialize(T object, jakarta.json.stream.JsonGenerator generator)
      Specified by:
      serialize in interface jakarta.json.bind.serializer.SerializationContext