All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fasterxml.jackson.module.kotlin.SingletonSupport.kt Maven / Gradle / Ivy

Go to download

Add-on module for Jackson (https://github.com/FasterXML/jackson/) to support Kotlin language, specifically introspection of method/constructor parameter names, without having to add explicit property name annotation.

There is a newer version: 2.18.2
Show newest version
package com.fasterxml.jackson.module.kotlin

/**
 * Special handling for singletons.
 */
enum class SingletonSupport {
    // No special handling of singletons (pre-2.10 behavior)
    //      Each time a Singleton object is deserialized a new instance is created.
    DISABLED,
    // Deserialize then canonicalize (was the default in 2.10)
    //      Deserializing a singleton overwrites the value of the single instance.
    //     [jackson-module-kotlin#225]: keep Kotlin singletons as singletons
    CANONICALIZE
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy