Main Builder
Builder to create a DI object.
Functions
Link copied to clipboard
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.
Link copied to clipboard
abstract fun <A : Any, T : Any> BindInArgSet( tag: Any? = null, overrides: Boolean? = null, argType: TypeToken<in A>, type: TypeToken<out T>, creator: DI.Builder.ArgSetBinder<A, T>.() -> Unit)
Content copied to clipboard
Creates a Set binding of a given type with a given tag and attaches multiple bindings to it.
Link copied to clipboard
Link copied to clipboard
abstract fun constant(tag: Any, overrides: Boolean? = null): DI.Builder.ConstantBinder
Content copied to clipboard
Starts a constant binding.
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.
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.
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.
Link copied to clipboard
Link copied to clipboard
abstract fun RegisterContextTranslator(translator: ContextTranslator<*, *>)
Content copied to clipboard