KtormModule

class KtormModule : Module(source)

Jackson Module implementation that supports serializing Ktorm's entity objects in JSON format.

Entity classes in Ktorm are defined as interfaces, and entity objects are created by JDK dynamic proxy. That's why Jackson cannot serialize entity objects by default (because they are not normal Java classes). This module provides the Jackson serialization support for Ktorm.

To enable this module, you need to call the ObjectMapper.registerModule method to register it to Jackson. You can also call ObjectMapper.findAndRegisterModules to automatically find and register it using JDK ServiceLoader facility. For more details, please see Jackson's documentation.

See also

ObjectMapper.registerModule
ObjectMapper.findAndRegisterModules

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun getDependencies(): MutableIterable<Module>
Link copied to clipboard
open override fun getModuleName(): String
Link copied to clipboard
open fun getTypeId(): Any
Link copied to clipboard
open override fun setupModule(context: Module.SetupContext)
Link copied to clipboard
open override fun version(): Version