L2 — default ICollectionLocator impl.
Thin wrapper composing the pure naming layer (naming/ref-for-dim)
with the sunset-aware config (config/sunset?). Like the router,
reads config lazily on each call so hot-flips propagate.
The locator is the single source of truth for the
spec→CollectionRef mapping. The write pipeline must NEVER
construct a CollectionRef from a raw type or string — only from a
resolved ProviderSpec via this protocol. That invariant is what
eliminates the bypass paths that fed the 1804 bug.
L2 — default `ICollectionLocator` impl. Thin wrapper composing the pure naming layer (`naming/ref-for-dim`) with the sunset-aware config (`config/sunset?`). Like the router, reads config lazily on each call so hot-flips propagate. The locator is the single source of truth for the spec→`CollectionRef` mapping. The write pipeline must NEVER construct a CollectionRef from a raw type or string — only from a resolved `ProviderSpec` via this protocol. That invariant is what eliminates the bypass paths that fed the 1804 bug.
(make-locator)(make-locator config-fn)Construct a DefaultLocator. Takes an optional 0-arg config-fn
for testability; in production omit it to pick up cconfig/resolve!.
Construct a `DefaultLocator`. Takes an optional 0-arg `config-fn` for testability; in production omit it to pick up `cconfig/resolve!`.
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 |