Multiton
class Multiton<C : Any, A, T : Any>(scope: Scope<C>, contextType: TypeToken<in C>, explicitContext: Boolean, argType: TypeToken<in A>, createdType: TypeToken<out T>, refMaker: RefMaker?, sync: Boolean, creator: BindingDI<C>.(A) -> T) : DIBinding<C, A, T>
Content copied to clipboard
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
Multiton
Link copied to clipboard
Functions
factory Full Name
Link copied to clipboard
The full(er) name of this factory, used for debug print only.
factory Name
Link copied to clipboard
The name of this factory, used for debug print only.
get Factory
Link copied to clipboard
Properties
contextType
Link copied to clipboard
createdType
Link copied to clipboard
description
Link copied to clipboard
fullDescription
Link copied to clipboard
supportSubTypes
Link copied to clipboard