PluginStateStore class

Single authority for atomically persisting and deterministically recovering plugin state.

Constructors

PluginStateStore({required String rootPath, FileUtils? fileUtils, PluginContractValidator? validator, PluginConfigurationValidator? configValidator, PluginDependencyResolver? dependencyResolver})

Properties

configValidator → PluginConfigurationValidator
no setter
dependencyResolver → PluginDependencyResolver
no setter
hashCode → int
The hash code for this object.
no setterinherited
rootPath → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stateDirPath → String
Dedicated isolated directory for plugin state storage.
no setter
stateFilePath → String
Dedicated isolated path for plugin state storage.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readStateDocumentOrNull() → PluginStateDocument?
Reads raw state document or returns null if nonexistent or corrupted.
restoreAndRecover({required List<PluginManifest> discoveredManifests, PluginLifecycleManager? lifecycleManager, PluginRegistry? registry, PluginExecutionRuntime? runtime}) → PluginRecoveryResult
Loads persisted state and reconciles it against the live environment and discovered manifests.
savePluginState({required String pluginId, required SemVer version, required bool isEnabled, required PluginLifecycleState lifecycleState, required PluginValidationResult validationResult, required DependencyResolutionResult compatibilityResult, required RuntimeConfiguration configuration, ConfigurationSchema? schema, List<LifecycleTransitionRecord>? lifecycleHistory, List<ExecutionAuditRecord>? failureRecords, Map<String, dynamic>? lastKnownGoodSnapshot}) → void
Persists a single plugin instance's complete state by capturing upstream subsystem results.
saveStateDocument(PluginStateDocument document) → void
Atomically writes the entire PluginStateDocument to stateFilePath.
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

stateRelativeDir → const String
stateRelativeFilename → const String