SubsystemInstanceRegistryByTypeDesc class
Registry holding active singleton instances for a specific SubsystemTypeDesc.
Constructors
- SubsystemInstanceRegistryByTypeDesc({required SubsystemTypeDesc typeDesc})
Properties
-
allInstances
→ List<
Subsystem> -
All active subsystem instances in this registry.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
singletonsByDesc
→ Map<
SubsystemClassDesc, Subsystem> -
Unmodifiable view of registered singletons keyed by class descriptor.
no setter
- typeDesc → SubsystemTypeDesc
-
final
Methods
-
allInstancesOfType<
TSubsystem extends Subsystem> () → List< TSubsystem> -
All active subsystem instances matching type
TSubsystem. -
deleteRegistry(
) → Future< void> - Deletes this type registry and all contained subsystems.
-
findByClassId(
String classId) → Subsystem? -
Finds a registered subsystem by its
classId. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
unregisterSingleton(
Subsystem instance, {bool preserveTypeContext = false}) → Future< void> - Unregisters and disposes a singleton instance. Safe and idempotent: does nothing if the instance is not registered.
-
unregisterSingletonByClassId(
String classId, {bool preserveTypeContext = false}) → Future< void> -
Unregisters and disposes a singleton by its
classId.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited