TypeBinder

interface TypeBinder<T : Any>

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

Parameters

T

The type to bind.

Functions

with
Link copied to clipboard
common
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

InSet
Link copied to clipboard
common
inline fun <T : Any> DI.Builder.TypeBinder<T>.inSet(): TypeBinderInSet<T, Set<T>>
Defines that the binding will be saved in a set binding.
subTypes
Link copied to clipboard
fun <T : Any> DI.Builder.TypeBinder<T>.subTypes(): TypeBinderSubTypes<T>
Allows to bind in an existing set binding (rather than directly as a new binding).