Package dev.morphia.mapping.codec
Class MorphiaTypesCodecProvider
- java.lang.Object
-
- dev.morphia.mapping.codec.MorphiaTypesCodecProvider
-
- All Implemented Interfaces:
CodecProvider
public class MorphiaTypesCodecProvider extends Object implements CodecProvider
Defines a provider of codecs for Morphia's types
-
-
Constructor Summary
Constructors Constructor Description MorphiaTypesCodecProvider(Datastore datastore)
Create the provider
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <T> void
addCodec(Codec<T> codec)
<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
-
-
-
-
Constructor Detail
-
MorphiaTypesCodecProvider
public MorphiaTypesCodecProvider(Datastore datastore)
Create the provider- Parameters:
datastore
- the Datastore to use
-
-
Method Detail
-
addCodec
protected <T> void addCodec(Codec<T> codec)
-
get
public <T> Codec<T> get(Class<T> clazz, CodecRegistry registry)
- Specified by:
get
in interfaceCodecProvider
-
-