MutableData

A thread-safe in-memory data store providing access to values using the Service Locator pattern

It is provided so methods annotated with InitApi can store values (through their InitApiContext which provides access to a mutable data store) which can later be retrieved by methods annotated with Api (through their ApiContext which provides access to a read-only view).

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
inline fun <T : Any> MutableData.add(value: T)
Link copied to clipboard
open operator override fun <T : Any> get(key: Class<T>): T?
Link copied to clipboard
inline fun <T : Any> Data.get(): T?
Link copied to clipboard
inline fun <T : Any> Data.getValue(): T
fun <T : Any> Data.getValue(key: Class<T>): T
Link copied to clipboard
operator fun <T : Any> set(key: Class<T>, value: T)