remember Provider
Retrieves and keeps a reference on a provider of T for the given type and tag.
T generics will be preserved!
Return
A provider.
Parameters
The type of object the provider returns.
The bound tag, if any. If changed during composition, a new instance will be re-injected.
Throws
if no provider was found.
When calling the provider function, if the instance construction triggered a dependency loop.
Retrieves and keeps a reference on a provider of T for the given type and tag, curried from a factory that takes an argument A.
A & T generics will be preserved!
Return
A provider of T.
Parameters
The type of argument the curried factory takes.
The type of object to retrieve with the returned provider.
The bound tag, if any. If changed during composition, a new instance will be re-injected.
The argument that will be given to the factory when curried. If changed during composition, a new dependency will be re-injected.
Throws
If no provider was found.
When calling the provider, if the value construction triggered a dependency loop.
Retrieves and keeps a reference on a provider of T for the given type and tag, curried from a factory that takes an argument A.
A & T generics will be preserved!
Return
A provider of T.
Parameters
The type of argument the curried factory takes.
The type of object to retrieve with the returned provider.
The bound tag, if any. If changed during composition, a new instance will be re-injected.
A function that returns 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.
When calling the provider, if the value construction triggered a dependency loop.