Builder
interface Builder
Content copied to clipboard
This is where you configure the bindings.
Parameters
allowOverride
Whether or not the bindings defined by this builder or its imports are allowed to explicitly override existing bindings.
silentOverride
Whether or not the bindings defined by this builder or its imports are allowed to silently override existing bindings.
bindingsMap
The map that contains the bindings. Can be set at construction to construct a sub-builder (with different override permissions).
Functions
extend
Link copied to clipboard
abstract fun extend(container: DIContainer, allowOverride: Boolean = false, copy: Set<DI.Key<*, *, *>> = emptySet())
Content copied to clipboard
Imports all bindings defined in the given DIContainer into this builder.
registerContextTranslator
Link copied to clipboard
abstract fun registerContextTranslator(translator: ContextTranslator<*, *>)
Content copied to clipboard
subBuilder
Link copied to clipboard
abstract fun subBuilder(allowOverride: Boolean = false, silentOverride: Boolean = false): DIContainer.Builder
Content copied to clipboard