Class JacksonEncoder<T>

  • All Implemented Interfaces:
    org.bson.codecs.Encoder<T>

    public class JacksonEncoder<T>
    extends Object
    implements org.bson.codecs.Encoder<T>
    • Constructor Detail

      • JacksonEncoder

        public JacksonEncoder​(Class<T> clazz,
                              Class<?> view,
                              com.fasterxml.jackson.databind.ObjectMapper objectMapper,
                              org.bson.UuidRepresentation uuidRepresentation)
    • Method Detail

      • withUuidRepresentation

        public JacksonEncoder<T> withUuidRepresentation​(org.bson.UuidRepresentation uuidRepresentation)
      • encode

        public void encode​(org.bson.BsonWriter writer,
                           T value,
                           org.bson.codecs.EncoderContext encoderContext)
        Specified by:
        encode in interface org.bson.codecs.Encoder<T>
      • getEncoderClass

        public Class<T> getEncoderClass()
        Specified by:
        getEncoderClass in interface org.bson.codecs.Encoder<T>