Package dev.morphia.mapping.codec
Class PrimitiveCodecRegistry
- java.lang.Object
-
- dev.morphia.mapping.codec.PrimitiveCodecRegistry
-
- All Implemented Interfaces:
org.bson.codecs.configuration.CodecProvider
,org.bson.codecs.configuration.CodecRegistry
public class PrimitiveCodecRegistry extends Object implements org.bson.codecs.configuration.CodecRegistry
A provider of codecs for primitive typesDeveloper note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
-
Constructor Summary
Constructors Constructor Description PrimitiveCodecRegistry(org.bson.codecs.configuration.CodecRegistry codecRegistry)
Creates the provider
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <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)
-
-
-
Method Detail
-
get
public <T> org.bson.codecs.Codec<T> get(Class<T> clazz)
- Specified by:
get
in interfaceorg.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 interfaceorg.bson.codecs.configuration.CodecProvider
-
-