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

Link copied to clipboard
fun LateInitDI()

Properties

Link copied to clipboard
var baseDI: DI

The user is responsible to set this property before actually retrieveing a value.

Link copied to clipboard
open override val container: DIContainer

Every methods eventually ends up to a call to this container.

Link copied to clipboard
open override val di: DI

A DI Aware class must be within reach of a DI object.

Link copied to clipboard
open val diContext: DIContext<*>

A DI Aware class can define a context that is for all retrieval by overriding this property.

Link copied to clipboard
open val diTrigger: DITrigger?

Trigger to use that define when the retrieval will be done.