Class DataCodecRegistry
java.lang.Object
io.micronaut.configuration.mongo.core.serde.DataCodecRegistry
- All Implemented Interfaces:
org.bson.codecs.configuration.CodecProvider
,org.bson.codecs.configuration.CodecRegistry
@Internal
public final class DataCodecRegistry
extends Object
implements org.bson.codecs.configuration.CodecRegistry
The Micronaut Serialization codec registry.
- Since:
- 4.4
- Author:
- Denis Stepanov
-
Constructor Summary
ConstructorDescriptionDataCodecRegistry
(@Nullable Collection<Class<?>> entities, io.micronaut.serde.SerdeRegistry serdeRegistry) Default constructor. -
Method Summary
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 Details
-
DataCodecRegistry
public DataCodecRegistry(@Nullable @Nullable Collection<Class<?>> entities, io.micronaut.serde.SerdeRegistry serdeRegistry) Default constructor.- Parameters:
entities
- The entitiesserdeRegistry
- The serde registry
-
-
Method Details
-
get
- 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
-