Provider
class Provider<C : Any, T : Any>( val contextType: TypeToken<in C>, val createdType: TypeToken<out T>, val creator: NoArgBindingDI<C>.() -> T) : NoArgDIBinding<C, T>
Content copied to clipboard
Concrete provider: each time an instance is needed, the function creator function will be called.
A provider is like a Factory, but without argument.
Parameters
T
The created type.
created Type
The type of objects created by this provider, used for debug print only.
Constructors
Functions
Link copied to clipboard
The full(er) name of this factory, used for debug print only.
Link copied to clipboard
The name of this factory, used for debug print only.
Link copied to clipboard