Factory
class Factory<C : Any, A, T : Any>(val contextType: TypeToken<in C>, val argType: TypeToken<in A>, val createdType: TypeToken<out T>, creator: BindingDI<C>.(A) -> T) : DIBinding<C, A, T>
Concrete factory: each time an instance is needed, the function creator function will be called.
Parameters
A
The argument type.
T
The created type.
arg Type
The type of the argument used by this factory.
created Type
The type of objects created by this factory.
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 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.