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>
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
Properties
Link copied to clipboard
The type of contexts that are to be set when using this factory.
Link copied to clipboard
Link copied to clipboard
The function that will be called each time an instance is requested. Should create a new instance.
Link copied to clipboard
The description of this factory (using simple type names), used for debug print only.
Link copied to clipboard
The description of this factory (using full type names), used for debug print only.
Link copied to clipboard
Whether this bindings supports subtype handling.