@Internal public final class DataCodecRegistry extends Object implements org.bson.codecs.configuration.CodecRegistry
Constructor and Description |
---|
DataCodecRegistry(Collection<Class<?>> entities,
io.micronaut.serde.SerdeRegistry serdeRegistry)
Default constructor.
|
Modifier and Type | Method and 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) |
public DataCodecRegistry(@Nullable Collection<Class<?>> entities, io.micronaut.serde.SerdeRegistry serdeRegistry)
entities
- The entitiesserdeRegistry
- The serde registrypublic <T> org.bson.codecs.Codec<T> get(Class<T> clazz)
get
in interface org.bson.codecs.configuration.CodecRegistry
public <T> org.bson.codecs.Codec<T> get(Class<T> clazz, org.bson.codecs.configuration.CodecRegistry registry)
get
in interface org.bson.codecs.configuration.CodecProvider