LateInitDI

class LateInitDI : DI

DI object that defers all method to a base DI object that can be set later.

You can use all lazy methods on this even if baseDI is not set, but you cannot retrieve a value while it is not set.

Constructors

LateInitDI
Link copied to clipboard
common
fun LateInitDI()

Functions

equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
toString
Link copied to clipboard
common
open fun toString(): String

Properties

baseDI
Link copied to clipboard
common
var baseDI: DI
The user is responsible to set this property before actually retrieveing a value.
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.