addExtend

fun addExtend(di: DI, allowOverride: Boolean = false)

Adds the bindings of an existing DI instance to the bindings that will be applied when the DI is constructed.

Parameters

di

The existing DI instance whose bindings to be apply when the DI instance is constructed.

allowOverride

Whether these bindings are allowed to override existing bindings.

Throws

When calling this function after getOrConstruct or any DI retrieval function.