SubTypes

fun <C : Any, A, T : Any> SubTypes(contextType: TypeToken<in C>, argType: TypeToken<in A>, createdType: TypeToken<out T>, block: (TypeToken<out T>) -> DIBinding<in C, in A, out T>)

Parameters

C

The context type of all bindings in the set.

A

The argument type of all bindings in the set.

T

The provided type of all bindings in the set.

block

A function that provides a binding for each subtype.