Package org.graylog2.database.jackson
Class CustomJacksonCodecRegistry
java.lang.Object
org.mongojack.JacksonCodecRegistry
org.graylog2.database.jackson.CustomJacksonCodecRegistry
- All Implemented Interfaces:
org.bson.codecs.configuration.CodecProvider,org.bson.codecs.configuration.CodecRegistry
public class CustomJacksonCodecRegistry
extends org.mongojack.JacksonCodecRegistry
A custom implementation of Mongojack's
JacksonCodecRegistry so that we are able to register our
CustomJacksonCodec.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ConcurrentHashMap<Class<?>,org.bson.codecs.Codec<?>> protected final com.fasterxml.jackson.databind.ObjectMapper -
Constructor Summary
ConstructorsConstructorDescriptionCustomJacksonCodecRegistry(com.fasterxml.jackson.databind.ObjectMapper objectMapper, org.bson.codecs.configuration.CodecRegistry defaultCodecRegistry) -
Method Summary
Methods inherited from class org.mongojack.JacksonCodecRegistry
get, get, getUuidRepresentation, isDefaultMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bson.codecs.configuration.CodecProvider
getMethods inherited from interface org.bson.codecs.configuration.CodecRegistry
get
-
Field Details
-
codecCache
-
objectMapper
protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Details
-
CustomJacksonCodecRegistry
public CustomJacksonCodecRegistry(com.fasterxml.jackson.databind.ObjectMapper objectMapper, org.bson.codecs.configuration.CodecRegistry defaultCodecRegistry)
-
-
Method Details
-
addCodecForClass
- Overrides:
addCodecForClassin classorg.mongojack.JacksonCodecRegistry
-