TSubsystemFactory<TSubsystem extends Subsystem> class

Fluent builder to configure and register batches of subsystems.

Configuration API (chainable):

Then registerSubsystems executes validation, construction, and initialization via SubsystemInstanceRegistry.

TSubsystem: common base type of subsystems configured by this factory.

Constructors

TSubsystemFactory()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addService(BuildServiceParameters parameter) → TSubsystemFactory<TSubsystem>
Adds a subsystem registration parameter.
addServices(List<BuildServiceParameters> parameters) → TSubsystemFactory<TSubsystem>
Adds multiple subsystem registration parameters.
disableByClassId(String classId) → TSubsystemFactory<TSubsystem>
Marks a subsystem configuration as disabled so it will not be constructed.
disableByTypeId(String typeId) → TSubsystemFactory<TSubsystem>
Marks all subsystems of a given type as disabled.
findAllServiceParametersByTypeId(String serviceTypeId) → List<BuildServiceParameters>
Finds all pending registration parameters for serviceTypeId.
findServiceParametersByClassId(String serviceClassId) → BuildServiceParameters?
Finds pending registration parameters for serviceClassId.
getRegistrations() → List<BuildServiceParameters>
Returns an unmodifiable snapshot of currently pending configurations.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerSubsystems({bool flushAfter = true, bool atomicBatch = false}) → Future<List<TSubsystem>>
Builds and initializes all registered subsystems.
removeClass(String serviceClassId) → void
Removes all registrations matching serviceClassId.
removeType(String serviceTypeId) → void
Removes all registrations matching serviceTypeId.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited