jetbrains.buildServer.configs.kotlin.v2019_2 / PropInitOnceDelegate

PropInitOnceDelegate

open class PropInitOnceDelegate<T>

Can be specified as a delegate for some property. Collects all initializers for such properties but does not call them right there. Instead all initializers are called inside applyAllInitFunctions

Constructors

<init>

PropInitOnceDelegate(instance: T)

Can be specified as a delegate for some property. Collects all initializers for such properties but does not call them right there. Instead all initializers are called inside applyAllInitFunctions

Properties

instance

val instance: T

Functions

getValue

operator fun getValue(thisRef: Any?, property: KProperty<*>): T

setInitializer

open fun setInitializer(init: T.() -> Unit): Unit

Companion Object Properties

initFunctions

var initFunctions: MutableList<() -> Unit>

insideApplyAllInit

var insideApplyAllInit: Boolean

Companion Object Functions

applyAllInitFunctions

fun applyAllInitFunctions(): Unit

disableLazyInit

fun disableLazyInit(): Unit