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

Variant

resolve(resolved_dependencies: Array)


Property Descriptions

Variant token 🔗

The token this provider satisfies.


Variant use 🔗

A script, a callable, or a plain value that creates the provided value.


Variant use_existing = null 🔗

Another token. When set, the provider resolves to the value of that token.


Array requires = [] 🔗

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.