Builder
This is where you configure the bindings.
Parameters
allow Override
Whether or not the bindings defined by this builder or its imports are allowed to explicitly override existing bindings.
silent Override
Whether or not the bindings defined by this builder or its imports are allowed to silently override existing bindings.
bindings Map
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.
register Context Translator
Link copied to clipboard
abstract fun registerContextTranslator(translator: ContextTranslator<*, *>)
Content copied to clipboard
sub Builder
Link copied to clipboard
abstract fun subBuilder(allowOverride: Boolean = false, silentOverride: Boolean = false): DIContainer.Builder
Content copied to clipboard
Creates a sub builder that will register its bindings to the same map.