Multiton
class Multiton<C : Any, A, T : Any>(val scope: Scope<C>, val contextType: TypeToken<in C>, explicitContext: Boolean, val argType: TypeToken<in A>, val createdType: TypeToken<out T>, refMaker: RefMaker? = null, val sync: Boolean = true, creator: BindingDI<C>.(A) -> T) : DIBinding<C, A, T>
Concrete multiton: will create one and only one instance for each argument. Will create the instance on first time a given argument is used and will subsequently always return the same instance for the same argument.
Parameters
T
The created type.
Constructors
Properties
Link copied to clipboard
The type of contexts that are to be set when using this factory.
Link copied to clipboard
The type of the created object, used for debug print only.
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.