MutableEnvironment

A simple, mutable environment that can also dispatch requests for a meta-environment to the one passed as a constructor parameter.

You should not use this class directly. Consider instead using UnsafeMutableEnvironment, which manages two instances of MutableEnvironment internally.

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
open override fun <T : Any> createInjector(identifier: Identifier<T>, onInjection: (T) -> Unit): Injector<T>
Link copied to clipboard
open fun <T : Any> get(identifier: Identifier<T>): T
Link copied to clipboard
open override fun getAllIdentifiers(): Sequence<Identifier<*>>
Link copied to clipboard
open override fun <T : Any> getOrNull(identifier: Identifier<T>): T?
Link copied to clipboard
open override fun <T : Any> put(declaration: Declaration<T>)