factory
Gets a factory of T
for the given argument type, return type and tag.
A & T generics will be preserved.
Return
A factory.
Parameters
The type of argument the factory takes.
The type of object the factory returns.
The bound tag, if any.
Throws
if no factory was found.
When calling the factory function, if the instance construction triggered a dependency loop.
Gets a factory of T
for the given argument type, return type and tag.
A & T generics will be preserved!
Return
A factory.
Parameters
The type of argument the factory takes.
The type of object the factory returns.
The bound tag, if any.
Throws
if no factory was found.
When calling the factory function, if the instance construction triggered a dependency loop.
Gets a factory of T
for the given argument type, return type and tag.
A & T generics will be erased.
Return
A factory.
Parameters
The type of argument the factory takes.
The type of object the factory returns.
The bound tag, if any.
Throws
if no factory was found.
When calling the factory function, if the instance construction triggered a dependency loop.
Gets a factory of T
for the given argument type and return type. The name of the receiving property is used as tag.
A & T generics will be erased!
Return
A factory.
Parameters
The type of argument the factory takes.
The type of object the factory returns.
Throws
if no factory was found.
When calling the factory function, if the instance construction triggered a dependency loop.
Creates a factory: each time an instance is needed, the function creator function will be called.
A & T generics will be erased!
Return
A factory ready to be bound.
Parameters
The argument type.
The created type.
The function that will be called each time an instance is requested. Should create a new instance.