OkfBundleChangeApplier class final
Prepares and commits the single safe write path for OKF bundle mutations.
prepare builds the complete candidate, validates it with the fixed OKF Spec validator, and returns an opaque capability. commit accepts only that capability, rechecks the source snapshot, and transactionally writes the exact bytes captured during preparation.
Constructors
- OkfBundleChangeApplier({DateTime clock() = DateTime.now})
-
Creates a write path.
clockonly dates generated log entries.const
Properties
Methods
-
apply(
String rootPath, OkfBundleChangeSet changes) → Future< OkfBundleApplication> -
Prepares and commits
changeswhile serializing the complete operation. -
commit(
OkfPreparedChange prepared) → Future< OkfBundleCommitResult> -
Commits exactly the bytes bound into
prepared. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
prepare(
String rootPath, OkfBundleChangeSet changes) → Future< OkfBundlePreparation> - Builds and validates a complete candidate without writing any file.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited