provider
Creates a factory: each time an instance is needed, the function creator function will be called.
T generics will be erased!
A provider is like a factory, but without argument.
Return
A provider ready to be bound.
Parameters
The created type.
The function that will be called each time an instance is requested. Should create a new instance.
Gets 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.
Throws
if no provider was found.
When calling the provider function, if the instance construction triggered a dependency loop.
Gets 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.
The argument that will be given to the factory when curried.
Throws
If no provider was found.
When calling the provider, if the value construction triggered a dependency loop.
Gets 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.
A function that returns the argument that will be given to the factory when curried.
Throws
If no provider was found.
When calling the provider, if the value construction triggered a dependency loop.
Gets a provider of T for the given type and tag.
T generics will be erased.
Return
A provider.
Parameters
The type of object the provider returns.
The bound tag, if any.
Throws
if no provider was found.
When calling the provider function, if the instance construction triggered a dependency loop.
Gets a provider of T for the given type and tag, curried from a factory for the given argument.
A & T generics will be erased.
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.
The argument that will be given to the factory when curried.
Throws
If no provider was found.
When calling the provider, if the value construction triggered a dependency loop.
Gets a provider of T for the given type and tag, curried from a factory for the given argument.
The argument type is extracted from the Typed.type of the argument.
A & T generics will be erased.
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.
The argument that will be given to the factory when curried.
Throws
If no provider was found.
When calling the provider, if the value construction triggered a dependency loop.
Gets a provider of T for the given type and tag, curried from a factory for the given argument.
A & T generics will be erased.
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.
A function that returns the argument that will be given to the factory when curried.
Throws
If no provider was found.
When calling the provider, if the value construction triggered a dependency loop.
Gets a provider of T for the given type. The name of the receiving property is used as tag.
T generics will be erased!
Return
A provider.
Parameters
The type of object the provider returns.
Throws
if no provider was found.
When calling the provider function, if the instance construction triggered a dependency loop.
Gets a provider of T for the given type, curried from a factory that takes an argument A. The name of the receiving property is used as tag.
A & T generics will be erased!
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 argument that will be given to the factory when curried.
Throws
If no provider was found.
When calling the provider, if the value construction triggered a dependency loop.
Gets a provider of T for the given type, curried from a factory that takes an argument A. The name of the receiving property is used as tag.
A & T generics will be erased!
Return
A provider of T.
Parameters
The type of argument the curried factory takes.
The type of object to retrieve with the returned provider.
A function that returns the argument that will be given to the factory when curried.
Throws
If no provider was found.
When calling the provider, if the value construction triggered a dependency loop.