GdlrModuleProvider¶
Inherits: RefCounted < Object
Describes how a module creates the value for one token.
Description¶
Internal. Godular builds providers from the PROVIDERS declarations of a GdlrModule. User code does not create them.
Tutorials¶
Properties¶
Methods¶
Property Descriptions¶
The token this provider satisfies.
A script, a callable, or a plain value that creates the provided value.
Another token. When set, the provider resolves to the value of that token.
Tokens passed as positional arguments to use, in order.
Method Descriptions¶
Variant resolve(resolved_dependencies: Array) 🔗
Creates the provided value from the resolved values of requires. When token extends GdlrCapability, the method asserts that the value extends the capability.