factory
inline fun <T : Any> factory(qualifier: Qualifier = TypeQualifier(T::class), noinline create: () -> T)
Defines a dependency that will have a new instance created every time it is requested.
Parameters
T
The type of the dependency.
qualifier
An optional Qualifier to uniquely identify this dependency.
create
A lambda function that provides an instance of the dependency.