corda / net.corda.core.serialization / SingletonSerializationToken

SingletonSerializationToken

class SingletonSerializationToken : SerializationToken

A class representing a SerializationToken for some object that is not serializable but can be looked up (when deserialized) via just the class name.

Functions

fromToken

fun fromToken(context: SerializeAsTokenContext): SerializeAsToken

registerWithContext

fun registerWithContext(context: SerializeAsTokenContext, toBeTokenized: SerializeAsToken): SingletonSerializationToken

Companion Object Functions

singletonSerializationToken

fun <T : SerializeAsToken> singletonSerializationToken(toBeTokenized: Class<T>): SingletonSerializationToken

Extension Functions

contextLogger

fun Any.contextLogger(): Logger

When called from a companion object, returns the logger for the enclosing class.