AllProviders

fun <T : Any> <Error class: unknown class>.AllProviders(type: TypeToken<out T>, tag: Any? = null): <Error class: unknown class><List<() -> T>>

Gets all providers that match the the given return type and tag.

Return

A list of providers of T.

Parameters

T

The type of object to retrieve with the providers.

type

The type of object to retrieve with the providers.

tag

The bound tag, if any.

Throws

DI.DependencyLoopException

When calling the factory, if the value construction triggered a dependency loop.


fun <A, T : Any> <Error class: unknown class>.AllProviders(argType: TypeToken<in A>, type: TypeToken<out T>, tag: Any? = null, arg: () -> A): <Error class: unknown class><List<() -> T>>

Gets all providers that match the the given return type and tag, curried from factories that take an argument A.

Return

A list of providers of T.

Parameters

A

The type of argument the curried factories take.

T

The type of object to retrieve with the providers.

argType

The type of argument the curried factories take.

type

The type of object to retrieve with the providers.

tag

The bound tag, if any.

arg

A function that returns the argument that will be given to the factory when curried.

Throws

DI.DependencyLoopException

When calling the factory, if the value construction triggered a dependency loop.