Injector

fun interface Injector<out T> : ReadOnlyProperty<Any?, T>

An injector is a read-only property delegator that has constraints on T.

Injectors are requested by component classes using any inject construct (e.g. SComponent.inject or inject). In the environment, injectors are created using InjectionEnvironment.createInjector.

Parameters

T

The object type to inject

Functions

Link copied to clipboard
abstract operator fun getValue(thisRef: Any?, property: KProperty<*>): T