Class JacksonCodecRegistry

java.lang.Object
org.mongojack.JacksonCodecRegistry
All Implemented Interfaces:
org.bson.codecs.configuration.CodecProvider, org.bson.codecs.configuration.CodecRegistry

public class JacksonCodecRegistry extends Object implements org.bson.codecs.configuration.CodecRegistry, org.bson.codecs.configuration.CodecProvider
This is an experimental JacksonCodecRegistry for use with the Mongo 3.0+ java driver. It has only undergone basic testing. This is use at your own risk.
Author:
christopher.ogrady
  • Constructor Summary

    Constructors
    Constructor
    Description
    JacksonCodecRegistry(tools.jackson.databind.ObjectMapper objectMapper, org.bson.codecs.configuration.CodecRegistry defaultCodecRegistry, Class<?> view, org.bson.UuidRepresentation uuidRepresentation)
     
    JacksonCodecRegistry(tools.jackson.databind.ObjectMapper objectMapper, org.bson.codecs.configuration.CodecRegistry defaultCodecRegistry, org.bson.UuidRepresentation uuidRepresentation)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> org.bson.codecs.Codec<T>
     
    <T> org.bson.codecs.Codec<T>
    get(Class<T> clazz)
     
    <T> org.bson.codecs.Codec<T>
    get(Class<T> clazz, org.bson.codecs.configuration.CodecRegistry registry)
     
    org.bson.UuidRepresentation
     
    protected <T> boolean
    isDefault(Class<T> clazz)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.bson.codecs.configuration.CodecProvider

    get

    Methods inherited from interface org.bson.codecs.configuration.CodecRegistry

    get
  • Constructor Details

    • JacksonCodecRegistry

      public JacksonCodecRegistry(tools.jackson.databind.ObjectMapper objectMapper, org.bson.codecs.configuration.CodecRegistry defaultCodecRegistry, org.bson.UuidRepresentation uuidRepresentation)
    • JacksonCodecRegistry

      public JacksonCodecRegistry(tools.jackson.databind.ObjectMapper objectMapper, org.bson.codecs.configuration.CodecRegistry defaultCodecRegistry, Class<?> view, org.bson.UuidRepresentation uuidRepresentation)
  • Method Details

    • get

      public <T> org.bson.codecs.Codec<T> get(Class<T> clazz)
      Specified by:
      get in interface org.bson.codecs.configuration.CodecRegistry
    • get

      public <T> org.bson.codecs.Codec<T> get(Class<T> clazz, org.bson.codecs.configuration.CodecRegistry registry)
      Specified by:
      get in interface org.bson.codecs.configuration.CodecProvider
    • isDefault

      protected <T> boolean isDefault(Class<T> clazz)
    • addCodecForClass

      public <T> org.bson.codecs.Codec<T> addCodecForClass(Class<T> clazz)
    • getUuidRepresentation

      public org.bson.UuidRepresentation getUuidRepresentation()