Class ObjectIdSerializer

  • All Implemented Interfaces:
    com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable

    public class ObjectIdSerializer
    extends EmbeddedObjectSerializer
    Serializer for object ids, serialises strings or byte arrays to an ObjectId class
    Since:
    1.0
    Author:
    James Roper
    • Constructor Detail

      • ObjectIdSerializer

        public ObjectIdSerializer()
    • Method Detail

      • serialize

        public void serialize​(Object value,
                              com.fasterxml.jackson.core.JsonGenerator jgen,
                              com.fasterxml.jackson.databind.SerializerProvider provider)
                       throws IOException,
                              com.fasterxml.jackson.core.JsonProcessingException
        Overrides:
        serialize in class EmbeddedObjectSerializer
        Throws:
        IOException
        com.fasterxml.jackson.core.JsonProcessingException