-
public class AdapterRegistryMaps an inference kind to the engine that implements it. The single routing point of the thin interpreter — engines self-register at startup; selection is by kind only (never taskType/framework).
-
-
Field Summary
Fields Modifier and Type Field Description public final static AdapterRegistryINSTANCE
-
Method Summary
Modifier and Type Method Description final Unitregister(AdapterFactory factory)final List<Capability>all()Every kind the SDK can currently run (e.g. final AdapterFactoryfind(String kind)The engine for kind, or null → the model is not runnable on-device (→ cloud fallback). final Unitclear()Test-only: reset registered engines. -
-
Method Detail
-
register
@Synchronized() final Unit register(AdapterFactory factory)
-
all
@Synchronized() final List<Capability> all()
Every kind the SDK can currently run (e.g. for capability advertising).
-
find
@Synchronized() final AdapterFactory find(String kind)
The engine for kind, or null → the model is not runnable on-device (→ cloud fallback).
-
clear
@Synchronized() final Unit clear()
Test-only: reset registered engines.
-
-
-
-