ScopeRegistry

A registry is responsible managing references inside a scope.

Inheritors

Functions

Link copied to clipboard
abstract fun clear()
Link copied to clipboard
override fun close()
Link copied to clipboard
abstract fun getOrCreate(key: RegKey, sync: Boolean = true, creator: () -> Reference<Any>): Any

Get or create a value that correspond for the given key.

Link copied to clipboard
abstract fun getOrNull(key: RegKey): () -> Any??
Link copied to clipboard
abstract fun remove(key: RegKey)
Link copied to clipboard
abstract fun values(): Iterable<Pair<RegKey, () -> Any?>>