Capability class abstract

A leaf the engine mounts. The engine ships three families — ProcessCapability (a spawned process), ServiceCapability (an async body), and LeaseCapability (a held lease) — and an asset may add its own (tmux, app, …).

NOT sealed: the carrier's dispatch is polymorphic through createAllocation (the createRenderObject analogue, ADR-0009 D4), never an exhaustive switch on the subtype — so a new family is an addition, not a core edit.

Implementers

Constructors

Capability()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createAllocation(AllocationContext ctx) Allocation
Mints the Allocation that holds this capability's live effect — the createRenderObject analogue (ADR-0009 D4). Synchronous + cheap; the Host then drives it asynchronously (startOrAdopt/update/dispose/detach). ProcessCapability/ServiceCapability supply defaults, so an existing capability needs no change; an asset overrides only to customize adopt/ detach/update for a bespoke effect.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
supervisionPolicy(StepArgs args) SupervisionPolicy
This capability's per-kind supervision declaration.
toString() String
A string representation of this object.
inherited

Operators

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