corda / net.corda.core / TransientProperty / <init>

# <init>

`TransientProperty(initializer: () -> T)`

A simple wrapper that enables the use of Kotlin's "val x by TransientProperty { ... }" syntax. Such a property will not be serialized to disk, and if it's missing (or the first time it's accessed), the initializer will be used to set it up. Note that the initializer will be called with the TransientProperty object locked.