TypeBinder

interface TypeBinder<T : Any>

Left part of the type-binding syntax (bind(type, tag)).

Parameters

T

The type to bind.

Functions

Link copied to clipboard
abstract infix fun <C : Any, A> with(binding: DIBinding<in C, in A, out T>)

Binds the previously given type and tag to the given binding.

Extensions

Link copied to clipboard
fun <T : Any> DI.Builder.TypeBinder<T>.InSet(setTypeToken: TypeToken<Set<T>>): TypeBinderInSet<T, Set<T>>

Allows to bind in an existing set binding (rather than directly as a new binding).

Link copied to clipboard

Allows to bind in an existing set binding (rather than directly as a new binding).