subsystem_base library

Classes

BuildServiceParameters
Configuration parameters for building and registering a subsystem instance.
Subsystem
Base class for all managed subsystems.
SubsystemClassDesc
Description of a subsystem class implementation.
SubsystemIncompatibleWithClass
Forbids the subsystem typeId/classId.
SubsystemIncompatibleWithType
Forbids any active subsystem of type typeId.
SubsystemInstanceRegistry
Central registry managing subsystem singleton instances across all SubsystemTypeDesc categories.
SubsystemInstanceRegistryByTypeDesc
Registry holding active singleton instances for a specific SubsystemTypeDesc.
SubsystemRequirement
Dependency or incompatibility constraint checked before registration.
SubsystemRequiresClass
Requires the subsystem typeId/classId to be registered.
SubsystemRequiresType
Requires at least one subsystem of type typeId to be registered.
SubsystemTypeDesc
Descriptor for a subsystem type category (e.g. settings, navigation, telemetry).
TBuildServiceParameters<TClassDesc extends SubsystemClassDesc>
TSubsystemFactory<TSubsystem extends Subsystem>
Fluent builder to configure and register batches of subsystems.

Typedefs

SubsystemBuilder<TSubsystem extends Subsystem> = Future<TSubsystem?> Function(BuildServiceParameters params)

Exceptions / Errors

SubsystemException
Base class for all subsystem-related exceptions.
SubsystemInitializationException
Thrown when an error occurs during subsystem initialization.
SubsystemNotFoundException
Thrown when a requested subsystem or registry cannot be found.
SubsystemRequirementException
Thrown when a dependency or incompatibility requirement is not satisfied.