kmongo / org.litote.kmongo.service / ClassMappingTypeService

ClassMappingTypeService

interface ClassMappingTypeService (source)

Provides an object mapping utility using java.util.ServiceLoader.

Properties

defaultNullSerialization

open val defaultNullSerialization: Boolean

Functions

calculatePath

abstract fun <T> calculatePath(property: KProperty<T>): String

codecRegistry

Returns a codec registry built with baseCodecRegistry.

open fun codecRegistry(baseCodecRegistry: CodecRegistry): CodecRegistry

codecRegistryWithCustomCodecs

open fun codecRegistryWithCustomCodecs(baseCodecRegistry: CodecRegistry, coreCodeRegistry: CodecRegistry): CodecRegistry

coreCodecRegistry

abstract fun coreCodecRegistry(baseCodecRegistry: CodecRegistry = KMongoUtil.defaultCodecRegistry): CodecRegistry

filterBaseCodecRegistry

open fun filterBaseCodecRegistry(baseCodecRegistry: CodecRegistry): CodecRegistry

filterIdToBson

abstract fun filterIdToBson(obj: Any, filterNullProperties: Boolean = false): BsonDocument

findIdProperty

abstract fun findIdProperty(type: KClass<*>): KProperty1<*, *>?

getIdValue

abstract fun <T, R> getIdValue(idProperty: KProperty1<T, R>, instance: T): R?

getPath

open fun <T> getPath(property: KProperty<T>): String

priority

Priority of this service. Greater is better.

abstract fun priority(): Int

resetConfiguration

open fun resetConfiguration(): Unit

toExtendedJson

abstract fun toExtendedJson(obj: Any?): String

Inheritors

ClassMappingType

ClassMappingTypeService currently used retrieved via java.util.ServiceLoader.

object ClassMappingType : ClassMappingTypeService

SerializationClassMappingTypeService

kotlinx serialization ClassMapping.

class SerializationClassMappingTypeService : ClassMappingTypeService