get Factory
abstract fun getFactory(di: BindingDI<*>, key: DI.Key<*, *, *>): (Any?) -> Any?
Content copied to clipboard
This method is called when DI do not find a binding for a requested retrieval.
Return
A factory method, which will be passed the argument of the retrieval, and must return the answer, or null if the external source itself cannot find an answer.
Parameters
di
The DI object used for retrieval.
key
Holds all information that are necessary to select an answer.