corda / net.corda.core.serialization / CordaSerializationTransformRename

CordaSerializationTransformRename

@Target([AnnotationTarget.CLASS]) annotation class CordaSerializationTransformRename

This annotation is used to mark a class has having had a property element. It is used by the AMQP deserializer to allow instances with different versions of the class on their Class Path to successfully deserialize the object.

NOTE: Renaming of the class itself isn't done with this annotation or, at present, supported by Corda

Constructors

<init>

CordaSerializationTransformRename(to: String, from: String)

This annotation is used to mark a class has having had a property element. It is used by the AMQP deserializer to allow instances with different versions of the class on their Class Path to successfully deserialize the object.

Properties

from

val from: String

String representation of the properties old new

to

val to: String

String representation of the properties new name

Extension Functions

contextLogger

fun Any.contextLogger(): Logger

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