Class DBRefSerializer

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

    public class DBRefSerializer
    extends com.fasterxml.jackson.databind.JsonSerializer<DBRef>
    Serialises DBRef objects
    Since:
    1.2
    Author:
    James Roper
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer

        com.fasterxml.jackson.databind.JsonSerializer.None
    • Constructor Summary

      Constructors 
      Constructor Description
      DBRefSerializer()  
    • Constructor Detail

      • DBRefSerializer

        public DBRefSerializer()
    • Method Detail

      • serialize

        public void serialize​(DBRef value,
                              com.fasterxml.jackson.core.JsonGenerator gen,
                              com.fasterxml.jackson.databind.SerializerProvider serializers)
                       throws IOException
        Specified by:
        serialize in class com.fasterxml.jackson.databind.JsonSerializer<DBRef>
        Throws:
        IOException
      • handledType

        public Class<DBRef> handledType()
        Overrides:
        handledType in class com.fasterxml.jackson.databind.JsonSerializer<DBRef>