Factory Or Null
fun <A, T : Any> DIAware.FactoryOrNull(argType: TypeToken<in A>, type: TypeToken<out T>, tag: Any? = null): LazyDelegate<(A) -> T?>
Gets a factory of T for the given argument type, return type and tag, or null if none is found.
Return
A factory of T, or null if no factory was found.
Parameters
A
The type of argument the returned factory takes.
T
The type of object to retrieve with the returned factory.
arg Type
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
When calling the factory, if the value construction triggered a dependency loop.