winter / io.jentz.winter.delegate / InjectedProperty

InjectedProperty

abstract class InjectedProperty<out T> : ReadOnlyProperty<Any?, T>

Base class of all injected properties.

Constructors

<init>

InjectedProperty()

Base class of all injected properties.

Properties

value

abstract val value: T

Functions

getValue

operator fun getValue(thisRef: Any?, property: KProperty<*>): T

inject

abstract fun inject(graph: Graph): Unit

map

fun <R> map(mapper: (T) -> R): InjectedProperty<R>

Apply a function to the retrieved instance.

provideDelegate

operator fun provideDelegate(thisRef: Any, prop: KProperty<*>): InjectedProperty<T>