SerializerRegistry

Constructors

Link copied to clipboard
constructor(base: KClass<T>)

Types

Link copied to clipboard
class RegistrationException(message: String, val firstAccess: Array<StackTraceElement>) : Throwable

Thrown during serializer registration failures.

Properties

Link copied to clipboard
val modules: Set<SerializersModule>

A mutable set used to hold instances of SerializersModule that are utilized for configuring serialization behavior.

Functions

Link copied to clipboard
inline fun <C : T> register(clazz: KClass<C>)

Can be used to register subclasses of T. Must be called before ever accessing modules, calling afterwards throw an RegistrationException!