Liking cljdoc? Tell your friends :D

hive-addon.hot.port

Ports through which the portable hot-reload core reaches host-specific work.

The core — schema, cascade, strategy — is portable .cljc and names only these protocols. One adapter namespace per host implements them; a per-host wiring namespace constructs the adapters and injects them into the reload context.

Adapters are constructed by FUNCTIONS, never held in a def or defonce: an instance built at load time keeps the class object of whichever protocol var was current then, and stops satisfying the protocol once this namespace is reloaded.

Ports through which the portable hot-reload core reaches host-specific work.

The core — schema, cascade, strategy — is portable .cljc and names only these
protocols. One adapter namespace per host implements them; a per-host wiring
namespace constructs the adapters and injects them into the reload context.

Adapters are constructed by FUNCTIONS, never held in a `def` or `defonce`: an
instance built at load time keeps the class object of whichever protocol var
was current then, and stops satisfying the protocol once this namespace is
reloaded.
raw docstring

IMountDriverclj/sprotocol

The effectful half of a remount: shutting an addon slice down and mounting it again through the ordinary mount pipeline.

The effectful half of a remount: shutting an addon slice down and mounting it
again through the ordinary mount pipeline.

-mount!clj/s

(-mount! this plan host opts)

Run the mount pipeline over plan. Returns a MountReport.

Run the mount pipeline over `plan`. Returns a MountReport.

-teardown!clj/s

(-teardown! this host ids)

Shut ids down in reverse dependency order. Returns {:torn-down [id] :errors [string]}.

Shut `ids` down in reverse dependency order.
Returns {:torn-down [id] :errors [string]}.
sourceraw docstring

INsReloaderclj/sprotocol

Namespace-level reloading.

Namespace-level reloading.

-reload-nss!clj/s

(-reload-nss! this ns-strs)

Reload ns-strs. Returns {:loaded [sym] :failed sym? :error string?}.

Reload `ns-strs`. Returns {:loaded [sym] :failed sym? :error string?}.
sourceraw docstring

ISourceResolverclj/sprotocol

Where an addon's constructor namespace lives, and whether its bytes can change under a running system.

Where an addon's constructor namespace lives, and whether its bytes can change
under a running system.

-resolve-sourceclj/s

(-resolve-source this ns-str)

Resolve ns-str to an AddonSource map WITHOUT :addon/id:

{:hot/source-kind :directory | :jar | :absent :hot/reloadable? boolean :hot/source-dir <source root, :directory only> :hot/source-url <resolved location, when found>}

MUST NOT throw. A namespace with no source resolves to :absent, which is a strategy input rather than an error.

Resolve `ns-str` to an AddonSource map WITHOUT :addon/id:

  {:hot/source-kind :directory | :jar | :absent
   :hot/reloadable? boolean
   :hot/source-dir  <source root, :directory only>
   :hot/source-url  <resolved location, when found>}

MUST NOT throw. A namespace with no source resolves to :absent, which is a
strategy input rather than an error.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close