LazyDI

class LazyDI(f: () -> DI) : DI

DI object that defers all method to a DI object that will be created only upon first retrieval.

Constructors

LazyDI
Link copied to clipboard
common
fun LazyDI(f: () -> DI)

Functions

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

Properties

baseDI
Link copied to clipboard
common
val baseDI: DI
The real DI object that will be created upon first retrieval (or manual access).
container
Link copied to clipboard
common
open override val container: DIContainer
Every methods eventually ends up to a call to this container.
di
Link copied to clipboard
common
open override val di: DI
A DI Aware class must be within reach of a DI object.
diContext
Link copied to clipboard
common
open val diContext: DIContext<*>
A DI Aware class can define a context that is for all retrieval by overriding this property.
diTrigger
Link copied to clipboard
common
open val diTrigger: DITrigger?
Trigger to use that define when the retrieval will be done.