JacksonSerdeFactory

This class implements SerdeFactory using Jackson's ObjectMapper.

If you want to customize the ObjectMapper used in your service, it is recommended to subclass this class using the constructor JacksonSerdeFactory, and then register it using the dev.restate.sdk.annotation.CustomSerdeFactory annotation.

Constructors

Link copied to clipboard
constructor()
constructor(mapper: ObjectMapper)
constructor(mapper: ObjectMapper, schemaGenerator: SchemaGenerator)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun <T> create(typeRef: TypeRef<T>): Serde<T>
open fun <T> create(clazz: Class<T>): Serde<T>