(defsys name
doc-string?
attr-map?
[:deps extras]
[:start start-body]
[:stop stop-body])
Defines a new systemic component with the provided name.
Defines a new systemic component with the provided name.
(dependencies system-symbol)
Returns the dependencies of the provided system symbol
Returns the dependencies of the provided system symbol
(dependents system-symbol)
Returns the dependents of the provided system symbol
Returns the dependents of the provided system symbol
(forget! system-symbol)
Removes the provided system-symbol
from the registry.
Returns a sequence of the remaining known systems.
Removes the provided `system-symbol` from the registry. Returns a sequence of the remaining known systems.
(restart! & system-symbols)
Restarts all running systems. Returns a sequence of the restarted systems.
If called with symbols, only the specified systems will be restarted.
Restarts all running systems. Returns a sequence of the restarted systems. If called with symbols, only the specified systems will be restarted.
(running? system-symbol)
Returns whether the provided system is currently running
Returns whether the provided system is currently running
(start! & system-symbols)
Starts all known systems.
If called with symbols, only the provided systems (and their dependencies) will be started.
Starts all known systems. If called with symbols, only the provided systems (and their dependencies) will be started.
(state system-symbol)
Returns the existing state for the running system, if it exists
Returns the existing state for the running system, if it exists
(stop! & system-symbols)
Stops all known systems.
If called with symbols, only the provided systems will be stopped.
Stops all known systems. If called with symbols, only the provided systems will be stopped.
(with-isolated-registry & body)
Executes body
with an isolated registry such that defsys
calls will not be persisted.
Defined systems will be removed from the calling ns as well.
Executes `body` with an isolated registry such that `defsys` calls will not be persisted. Defined systems will be removed from the calling ns as well.
(with-system bindings & body)
Executes body
using system overrides from bindings
as running systems.
Executes `body` using system overrides from `bindings` as running systems.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close