Package-level declarations

Types

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class KoneContextExclude

Marks a property to be excluded from the context registry during contexts plugin processing.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class KoneContextInclude

Marks a property of a class, an interface, or an object to be included in unwrapping of the containing class/interface/object during the call of localUnwrap or koneLocalUnwrap.

Functions

Link copied to clipboard
@JvmName(name = "koneLocalUnwrapContextual")
context(koneContextRegistry: KoneContextRegistry)
fun koneLocalUnwrap(vararg keys: RegistryKey<out KoneContext>)

This function is a stub that is replaced at compile time by the Kone contexts compiler plugin. It "unwraps" values corresponding to the specified keys in the KoneContextRegistry context parameter.

Link copied to clipboard
fun KoneContextRegistry.koneLocalUnwrap(vararg keys: RegistryKey<out KoneContext>)

This function is a stub that is replaced at compile time by the Kone contexts compiler plugin. It "unwraps" values corresponding to the specified keys in the KoneContextRegistry receiver.

Link copied to clipboard
fun localContexts(vararg contexts: Any?)

Runtime declaration for the localContexts contexts plugin function.

Link copied to clipboard
fun localReceivers(vararg receivers: Any?)

Runtime declaration for the localReceivers contexts plugin function.

Link copied to clipboard
fun KoneContext.Companion.localUnwrap(vararg koneContexts: KoneContext)

This function is a stub that is replaced at compile time by the Kone contexts compiler plugin. It "unwraps" the provided koneContexts into their underlying KoneContext instances.