remember Instance
Retrieves and keeps reference on an instance of T for the given type and tag.
T generics will be preserved!
Return
An instance.
Parameters
The type of object to retrieve.
The bound tag, if any. Whenever tag changes, the container will drop the previous instance and retrieve another, matching the new values.
Throws
if no provider was found.
If the instance construction triggered a dependency loop.
Retrieves and keeps a reference on an instance of T for the given type and tag, curried from a factory that takes an argument A.
A & T generics will be preserved!
Whenever tag or arg change, the container will drop the previous instance and retrieve another, matching the new values
Return
An instance of T.
Parameters
The type of argument the curried factory takes.
The type of object to retrieve.
The bound tag, if any. If changes during composition, a new instance will be injected.
The argument that will be given to the factory when curried. If changes during composition, a new instance will be injected.
Throws
If no provider was found.
If the value construction triggered a dependency loop.
Retrieves and keeps of T for the given type and tag, curried from a factory that takes an argument A.
A & T generics will be preserved!
Return
An instance of T.
Parameters
The type of argument the curried factory takes.
The type of object to retrieve.
The bound tag, if any. If changed during composition, a new instance will be provided.
The argument that will be given to the factory when curried. This lambda will be evaluated at first usage of the injected argument, and then cached, meaning that changing the result of fArg will NOT cause the dependency to be re-injected. If you don't want that, please use the non-lambda overload.
Throws
If no provider was found.
If the value construction triggered a dependency loop.