Provider
class Provider<C : Any, T : Any>(contextType: TypeToken<in C>, createdType: TypeToken<out T>, 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.
createdType
The type of objects created by this provider, used for debug print only.
Constructors
Functions
factoryFullName
Link copied to clipboard
factoryName
Link copied to clipboard
getFactory
Link copied to clipboard
Properties
contextType
Link copied to clipboard
createdType
Link copied to clipboard
creator
Link copied to clipboard
description
Link copied to clipboard
fullDescription
Link copied to clipboard
supportSubTypes
Link copied to clipboard