allFactories

abstract fun <C : Any, A, T : Any> allFactories(key: DI.Key<C, A, T>, context: C, overrideLevel: Int = 0): List<(A) -> T>

Retrieve all factories that match the given key.

Return

A list of matching factories.

Parameters

C

The key context type.

A

The key argument type.

T

The key return type.

key

The key to look for.

context

The context to pass to the bindings.

overrideLevel

0 if looking for regular bindings, 1 or more if looking for bindings that have been overridden.

Throws

If no factory was found.

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