DIProperty

class DIProperty<out V>(trigger: DITrigger?, originalContext: DIContext<*>, get: (DIContext<*>, String) -> V) : LazyDelegate<V>

A property delegate provider for DI retrieval. Provides a Lazy value that, when accessed, retrieve the value from DI.

In essence, the DI object is accessed only upon retrieving.

Constructors

DIProperty
Link copied to clipboard
fun <out V> DIProperty(trigger: DITrigger?, originalContext: DIContext<*>, get: (DIContext<*>, String) -> V)

Properties

originalContext
Link copied to clipboard
val originalContext: DIContext<*>