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.
abstract fun <T : Any> Bind(tag: Any? = null, overrides: Boolean? = null, binding: DIBinding<*, *, T>)
Content copied to clipboard
Attaches the binding of a given type with a given tag.
abstract fun <T : Any> Bind(type: TypeToken<out T>, tag: Any? = null, overrides: Boolean? = null): DI.Builder.TypeBinder<T>
Content copied to clipboard
Starts 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.
extend
Link copied to clipboard
abstract fun extend(di: DI, allowOverride: Boolean = false, copy: Copy = Copy.NonCached)
Content copied to clipboard
abstract fun extend(directDI: DirectDI, allowOverride: Boolean = false, copy: Copy = Copy.NonCached)
Content copied to clipboard
Imports all bindings defined in the given DI into this builder.
import All
Link copied to clipboard
abstract fun importAll(vararg modules: DI.Module, allowOverride: Boolean = false)
Content copied to clipboard
abstract fun importAll(modules: Iterable<DI.Module>, allowOverride: Boolean = false)
Content copied to clipboard
Imports all bindings defined in the given DI.Modules into this builder's definition.
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