AllFactories

abstract fun <A, T : Any> AllFactories(argType: TypeToken<in A>, type: TypeToken<T>, tag: Any? = null): List<(A) -> T>

Gets all factories that can return a T for the given argument type, return type and tag.

Return

A list of matching factories of T.

Parameters

A

The type of argument the returned factory takes.

T

The type of object to retrieve with the returned factory.

argType

The type of argument the returned factory takes.

type

The type of object to retrieve with the returned factory.

tag

The bound tag, if any.

Throws

DI.DependencyLoopException

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