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 texts captured during preparation, each after the UTF-8 byte order mark prepare describes when the file takes one.
Constructors
- OkfBundleChangeApplier({DateTime clock() = DateTime.now})
-
Creates a write path.
clockonly dates generated log entries.const
Properties
Methods
-
apply(
String rootPath, OkfBundleChangeSet changes, {OkfReservedFileProjection? project}) → Future< OkfBundleApplication> -
Prepares and commits
changeswhile serializing the complete operation. -
commit(
OkfPreparedChange prepared) → Future< OkfBundleCommitResult> -
Commits exactly the bytes bound into
prepared: each prepared text in UTF-8, after a byte order mark when prepare says the file takes one. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
prepare(
String rootPath, OkfBundleChangeSet changes, {OkfReservedFileProjection? project}) → 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