RuntimeExecutorResolving class abstract

An abstract base class responsible for orchestrating the runtime resolution of types, methods, and fields across multiple libraries.

RuntimeExecutorResolving provides a structured way to prepare a fully configured RuntimeExecutor instance by combining multiple sources of runtime information, such as:

  • Force-loaded libraries containing types that may not be referenced directly in the program but should be resolvable at runtime.
  • Runtime hints or configuration directives guiding type resolution and instance creation.
  • Fallback mechanisms to ensure operations succeed even when primary resolvers cannot handle certain types.

This class is abstract because the specific resolution strategy (how to generate AOT resolvers, how to combine mirrors, etc.) is left to concrete implementations. It defines the contract for any runtime resolving process in the JetLeaf framework.

Typical usage involves:

  1. Specifying additional libraries that need to be loaded.
  2. Providing logging callbacks for informational and warning messages.
  3. Calling resolve to obtain a fully operational RuntimeExecutor.

This setup enables hybrid AOT/JIT scenarios, supports code generation workflows, and allows progressive migration from reflective resolution to fully code-generated runtime support.

Constructors

RuntimeExecutorResolving({required List<LibraryMirror> libraries})
Constructs a new RuntimeExecutorResolving instance.

Properties

hashCode int
The hash code for this object.
no setterinherited
libraries List<LibraryMirror>
A list of libraries that should be force-loaded during resolution.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve() Future<RuntimeExecutor>
Executes the complete runtime resolution process.
toString() String
A string representation of this object.
inherited

Operators

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