kmongo / org.litote.kmongo.util / KMongoConfiguration

KMongoConfiguration

object KMongoConfiguration (source)

Use this class to customize the default behaviour of KMongo jackson bindings.

Properties

bsonMapper

Manage bson format.

var bsonMapper: ObjectMapper

bsonMapperCopy

Basically a copy of bsonMapper without org.litote.kmongo.jackson.KMongoBsonFactory. Used by org.litote.kmongo.jackson.JacksonCodec to resolves specific serialization issues.

var bsonMapperCopy: ObjectMapper

extendedJsonMapper

Manage mongo extended json format.

var extendedJsonMapper: ObjectMapper

Functions

registerBsonModule

Register a jackson Module for the two bson mappers, bsonMapper and bsonMapperCopy.

fun registerBsonModule(module: Module): Unit

resetConfiguration

Reset the jackson configuration.

fun resetConfiguration(): Unit