Package com.mongodb
Class KotlinCodecProvider
java.lang.Object
com.mongodb.KotlinCodecProvider
- All Implemented Interfaces:
CodecProvider
A CodecProvider for Kotlin data classes.
Delegates to
org.bson.codecs.kotlinx.KotlinSerializerCodecProvider
and falls back to org.bson.codecs.kotlin.DataClassCodecProvider
.
If neither bson-kotlin package nor the bson-kotlinx package is available,
provides null
.- Since:
- 4.10
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> Codec<T>
get
(Class<T> clazz, List<Type> typeArguments, CodecRegistry registry) <T> Codec<T>
get
(Class<T> clazz, CodecRegistry registry)
-
Constructor Details
-
KotlinCodecProvider
public KotlinCodecProvider()
-
-
Method Details
-
get
- Specified by:
get
in interfaceCodecProvider
-
get
- Specified by:
get
in interfaceCodecProvider
-