kmongo / org.litote.kmongo.serialization

Package org.litote.kmongo.serialization

Types

BinarySerializer

object BinarySerializer : KSerializer<Binary>

BsonTimestampSerializer

object BsonTimestampSerializer : TemporalExtendedJsonSerializer<BsonTimestamp>

CalendarSerializer

object CalendarSerializer : TemporalExtendedJsonSerializer<Calendar>

IdController

To manage ids.

interface IdController

InstantSerializer

object InstantSerializer : TemporalExtendedJsonSerializer<Instant>

KPropertySerializer

object KPropertySerializer : KSerializer<KProperty<*>>

LocalDateSerializer

object LocalDateSerializer : TemporalExtendedJsonSerializer<LocalDate>

LocalDateTimeSerializer

object LocalDateTimeSerializer : TemporalExtendedJsonSerializer<LocalDateTime>

LocaleSerializer

object LocaleSerializer : KSerializer<Locale>

LocalTimeSerializer

object LocalTimeSerializer : TemporalExtendedJsonSerializer<LocalTime>

OffsetDateTimeSerializer

object OffsetDateTimeSerializer : TemporalExtendedJsonSerializer<OffsetDateTime>

OffsetTimeSerializer

object OffsetTimeSerializer : TemporalExtendedJsonSerializer<OffsetTime>

ReflectionIdController

Default IdController implementation.

object ReflectionIdController : IdController

SerializationClassMappingTypeService

kotlinx serialization ClassMapping.

class SerializationClassMappingTypeService : ClassMappingTypeService

TemporalExtendedJsonSerializer

abstract class TemporalExtendedJsonSerializer<T> : KSerializer<T>

ZonedDateTimeSerializer

object ZonedDateTimeSerializer : TemporalExtendedJsonSerializer<ZonedDateTime>

Extensions for External Classes

kotlin.reflect.KClass

kotlin.reflect.KProperty

Properties

configuration

The kotlinx serialization default configuration.

var configuration: Configuration

kmongoSerializationModule

The KMongo SerializersModule.

val kmongoSerializationModule: SerializersModule

subtypePath

Provides the path for subtype discriminator, in order to write this kind of filter:

val subtypePath: String

Functions

changeIdController

Set the current IdController.

fun changeIdController(controller: IdController): Unit

registerModule

Add a custom SerializersModule to KMongo kotlinx.serialization mapping.

fun registerModule(module: SerializersModule): Unit

registerSerializer

Add a custom serializer to KMongo kotlinx.serialization mapping

fun <T> registerSerializer(serializer: KSerializer<T>): Unit