lazy

fun lazy(allowSilentOverride: Boolean = false, init: DI.MainBuilder.() -> Unit): LazyDI

Creates a DI instance that will be lazily created upon first access.

Return

A lazy property that will yield, when accessed, the new DI object, freshly created, and ready for hard work!

Parameters

allowSilentOverride

Whether the configuration block is allowed to non-explicit overrides.

init

The block of configuration.