corda / net.corda.core.serialization / SerializationFactory / asCurrent

asCurrent

fun <T> asCurrent(block: SerializationFactory.() -> T): T

Allow subclasses to temporarily mark themselves as the current factory for the current thread during serialization/deserialization. Will restore the prior context on exiting the block.