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. clock only dates generated log entries.
const

Properties

clock DateTime Function()
Supplies the date generated log entries are recorded under.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

apply(String rootPath, OkfBundleChangeSet changes) Future<OkfBundleApplication>
Prepares and commits changes while 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