Skip to main content

AdapterRegistry

Trait AdapterRegistry 

Source
pub trait AdapterRegistry {
    // Required method
    fn resolve(
        &self,
        adapter_id: &str,
        adapter_version: &str,
    ) -> AdapterResolution;
}
Expand description

Source of AdapterManifests the router consults at dispatch time.

Implemented for the built-in crate::manifest_registry via BuiltinAdapterRegistry. Tests pass a fixture-style fake registry that returns a synthetic manifest, which is how the router exercises resolution against a fake adapter manifest without depending on any specific lifecycle client.

Required Methods§

Source

fn resolve(&self, adapter_id: &str, adapter_version: &str) -> AdapterResolution

Resolve (adapter_id, adapter_version). Implementations MUST distinguish “id unknown” from “id known, version mismatch” — the router needs both signals to produce a typed RouteError.

Implementors§