Main Builder
Builder to create a DI object.
Functions
Bind
Link copied to clipboard
abstract fun Bind(tag: Any? = null, overrides: Boolean? = null): DI.Builder.DirectBinder
Content copied to clipboard
Starts a direct binding with a given tag. A direct bind does not define the type to be bound, the type will be defined according to the bound factory.
Attaches the binding of a given type with a given tag.
constant
Link copied to clipboard
abstract fun constant(tag: Any, overrides: Boolean? = null): DI.Builder.ConstantBinder
Content copied to clipboard
Starts a constant binding.
import Once
Link copied to clipboard
abstract fun importOnce(module: DI.Module, allowOverride: Boolean = false)
Content copied to clipboard
Like import but checks that will only import each module once.
Register Context Translator
Link copied to clipboard
abstract fun RegisterContextTranslator(translator: ContextTranslator<*, *>)
Content copied to clipboard
Properties
containerBuilder
Link copied to clipboard
contextType
Link copied to clipboard
explicitContext
Link copied to clipboard
externalSources
Link copied to clipboard
fullContainerTreeOnError
Link copied to clipboard
fullDescriptionOnError
Link copied to clipboard