Skip to content

kernel/modules/activation

Defined in: app/src/kernel/modules/activation.ts:27

The result of resolveActivation.

readonly active: readonly ModuleManifest[]

Defined in: app/src/kernel/modules/activation.ts:29

Modules to activate, dependencies first.

readonly inactive: ReadonlyMap<string, InactiveReason>

Defined in: app/src/kernel/modules/activation.ts:31

Modules that stay inactive, with the reason.


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.

isEnabled(manifest): boolean | undefined

Defined in: app/src/kernel/modules/activation.ts:15

ModuleManifest

An optional module.

boolean | undefined

true or false when policy, setting or safe mode decide, or undefined to use the manifest’s default.

InactiveReason = { kind: "disabled"; } | { dependency: ModuleId; kind: "dependency"; }

Defined in: app/src/kernel/modules/activation.ts:23

Why a module is not active.

const ActivationSourceToken: Token<ActivationSource>

Defined in: app/src/kernel/modules/activation.ts:19

Token for the ActivationSource.

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.

ModuleRegistry

The validated module graph.

ActivationSource

Decides about optional modules.

ReadonlySet<string> = ...

Modules treated as inactive regardless of the source, for example modules that failed to activate.

ActivationPlan