ZfaAgentStoreBinding class final
Binds an agent runtime to the v8 ZfaStore as its single domain hub (issue #2256).
The store is the one typed, normalized surface the app UI, the TUI and a
remote ZfaLink inspector all observe. An agent that reads product facts
or writes session progress must therefore go through THIS binding rather
than an ad-hoc repository: store is the same instance the views hold, and
registry is the same type registry that resolves every entity's
descriptor.
final binding = ZfaAgentStoreBinding(store: store, registry: registry);
binding.register<AgentSessionDocument>(AgentSessionDocument.descriptor);
Constructors
- ZfaAgentStoreBinding({required ZfaStore store, required ZfaTypeRegistry registry})
-
Creates a binding over
storeand itsregistry.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- registry → ZfaTypeRegistry
-
The registry that maps an entity type to its generated descriptor.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- store → ZfaStore
-
The v8 store every agent read and write goes through.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
register<
T extends ZorphyEntityBase< (Object?> >ZorphyEntityDescriptor< T> descriptor) → void -
Registers
descriptorfor entity typeTon the bound registry. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited