SystemSource adapters (BOU-99 / ADR-033). The in-process adapter reflects the project by reading its files and (later) the live Integrant system; the static adapter serves a fixed snapshot for tests. All I/O lives here so the core resource producers stay pure.
SystemSource adapters (BOU-99 / ADR-033). The in-process adapter reflects the project by reading its files and (later) the live Integrant system; the static adapter serves a fixed snapshot for tests. All I/O lives here so the core resource producers stay pure.
(build-snapshot)(build-snapshot root)Reflect the project rooted at root (the working directory by default).
Each view is a delay, so reading one resource never pays to build the
others. A view that resolves to nil surfaces as :unavailable — and is not
advertised at all, see wagoe.mcp.core.resources/available-catalog.
The root is a parameter because relative paths in the JVM resolve against the process working directory, which a test cannot change: reading the project from an explicit root is what makes this reflection testable at all. Live-system views (schema-registry, routes, workflows, libs) are not reflected — see ADR-033.
Reflect the project rooted at `root` (the working directory by default). Each view is a `delay`, so reading one resource never pays to build the others. A view that resolves to nil surfaces as :unavailable — and is not advertised at all, see wagoe.mcp.core.resources/available-catalog. The root is a parameter because relative paths in the JVM resolve against the process working directory, which a test cannot change: reading the project from an explicit root is what makes this reflection testable at all. Live-system views (schema-registry, routes, workflows, libs) are not reflected — see ADR-033.
(in-process-system-source)(in-process-system-source root)Reflects the project at root, the working directory by default. Re-reads on
each call so resources always reflect current state.
Reflects the project at `root`, the working directory by default. Re-reads on each call so resources always reflect current state.
(static-system-source snap)A fixed snapshot, for tests and for serving a precomputed view.
A fixed snapshot, for tests and for serving a precomputed view.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |