KoneContextRegistry

Type-safe registry (a.k.a. type-safe map) made especially for contexts in Kone.

Properties

Link copied to clipboard

Underlying type-safe registry.

Functions

Link copied to clipboard
inline operator fun <R> KoneContextRegistry.invoke(block: KoneContextRegistry.() -> R): R

Provides receiver for Kone context registry.

Link copied to clipboard

Shortcut for getting context of type Context from KoneContextRegistry by corresponding key or throw if nothing is associated with the key.

Link copied to clipboard

Shortcut for getting context of type Context from KoneContextRegistry by corresponding key or default value if nothing is associated with the key.

Link copied to clipboard

Shortcut for getting context of type Context from KoneContextRegistry by corresponding key or computes and returns value via block if nothing is associated with the key.

Link copied to clipboard

Shortcut for getting context of type Context from KoneContextRegistry by corresponding key or null if nothing is associated with the key.