addFactory

abstract fun addFactory(creator: BindingDI<Any>.(A) -> T)

Adds a factory binding to the set.

Parameters

creator

The function that creates a new instance each time with an argument.