allFactories

inline fun <A : Any, T : Any> <Error class: unknown class>.allFactories(tag: Any? = null): <Error class: unknown class><List<(A) -> T>>

Gets all factories that match the the given argument type, return type and tag.

A & T generics will be erased!

Return

A list of factories of T.

Parameters

A

The type of argument the factories take.

T

The type of object to retrieve with the factories.

tag

The bound tag, if any.

Throws

DI.DependencyLoopException

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


inline fun <A : Any, T : Any> <Error class: unknown class>.allFactories(tag: Any? = null): List<(A) -> T>

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

A & T generics will be erased.

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.

tag

The bound tag, if any.

Throws

DI.DependencyLoopException

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


inline fun <A : Any, T : Any> DirectDI.allFactories(tag: Any? = null): List<(A) -> T>

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

A & T generics will be preserved.

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.

tag

The bound tag, if any.

Throws

DI.DependencyLoopException

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