kernel/modules/activation
Interfaces
Section titled “Interfaces”ActivationPlan
Section titled “ActivationPlan”Defined in: app/src/kernel/modules/activation.ts:27
The result of resolveActivation.
Properties
Section titled “Properties”active
Section titled “active”
readonlyactive: readonlyModuleManifest[]
Defined in: app/src/kernel/modules/activation.ts:29
Modules to activate, dependencies first.
inactive
Section titled “inactive”
readonlyinactive:ReadonlyMap<string,InactiveReason>
Defined in: app/src/kernel/modules/activation.ts:31
Modules that stay inactive, with the reason.
ActivationSource
Section titled “ActivationSource”Defined in: app/src/kernel/modules/activation.ts:9
Answers whether an optional module is switched on. Implementations combine mandatory policies, settings and safe mode, in that order of precedence.
Methods
Section titled “Methods”isEnabled()
Section titled “isEnabled()”isEnabled(
manifest):boolean|undefined
Defined in: app/src/kernel/modules/activation.ts:15
Parameters
Section titled “Parameters”manifest
Section titled “manifest”An optional module.
Returns
Section titled “Returns”boolean | undefined
true or false when policy, setting or safe mode decide, or undefined
to use the manifest’s default.
Type Aliases
Section titled “Type Aliases”InactiveReason
Section titled “InactiveReason”InactiveReason = {
kind:"disabled"; } | {dependency:ModuleId;kind:"dependency"; }
Defined in: app/src/kernel/modules/activation.ts:23
Why a module is not active.
Variables
Section titled “Variables”ActivationSourceToken
Section titled “ActivationSourceToken”
constActivationSourceToken:Token<ActivationSource>
Defined in: app/src/kernel/modules/activation.ts:19
Token for the ActivationSource.
Functions
Section titled “Functions”resolveActivation()
Section titled “resolveActivation()”resolveActivation(
registry,source,unavailable?):ActivationPlan
Defined in: app/src/kernel/modules/activation.ts:42
Computes which modules are active and in which order to start them. A module is active if it is core, or switched on and all its dependencies are active.
Parameters
Section titled “Parameters”registry
Section titled “registry”The validated module graph.
source
Section titled “source”Decides about optional modules.
unavailable?
Section titled “unavailable?”ReadonlySet<string> = ...
Modules treated as inactive regardless of the source, for example modules that failed to activate.