CrossAppInvoker class
Invokes another app's registered command by name through the registry (FR-005).
Constructors
- CrossAppInvoker(CommandRegistry registry)
- Construct an invoker bound to a CommandRegistry.
Properties
-
currentChain
→ List<
String> -
The current invocation chain, for diagnostics. Empty when no
invocations are in flight.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasInFlightInvocations → bool
-
Whether the invoker currently has any in-flight invocations on the
stack. Useful for tests of the circular-reference detector.
no setter
- registry → CommandRegistry
-
The registry this invoker consults.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
invoke(
String ownerApp, String commandName, CliInvocation invocation) → Future< CommandResult> -
Invoke
[ownerApp]/[commandName]with the given CliInvocation. -
invokeByName(
String commandName, CliInvocation invocation) → Future< CommandResult> - Invoke by name only, when the caller does not specify the owner app.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
resetForTest(
) → void - Reset the invocation stack. Used by tests between scenarios; never call this from production code (it would defeat circular-reference detection).