Package dev.morphia.mapping.codec
Class PrimitiveCodecRegistry
- java.lang.Object
-
- dev.morphia.mapping.codec.PrimitiveCodecRegistry
-
- All Implemented Interfaces:
CodecProvider
,CodecRegistry
@MorphiaInternal public class PrimitiveCodecRegistry extends Object implements 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(CodecRegistry codecRegistry)
Creates the provider
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Codec<T>
get(Class<T> clazz)
<T> Codec<T>
get(Class<T> clazz, CodecRegistry registry)
-
Methods inherited from class java.lang.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 Detail
-
PrimitiveCodecRegistry
public PrimitiveCodecRegistry(CodecRegistry codecRegistry)
Creates the provider- Parameters:
codecRegistry
- the registry
-
-
Method Detail
-
get
public <T> Codec<T> get(Class<T> clazz)
- Specified by:
get
in interfaceCodecRegistry
-
get
public <T> Codec<T> get(Class<T> clazz, CodecRegistry registry)
- Specified by:
get
in interfaceCodecProvider
-
-