REPL utilities for the Component framework. Provides the global
system
under development and the REPL lifecycle functions reset
,
start
, and stop
. You must provide a system constructor: see
set-init
.
REPL utilities for the Component framework. Provides the global `system` under development and the REPL lifecycle functions `reset`, `start`, and `stop`. You must provide a system constructor: see `set-init`.
No-argument function to return the initial (unstarted) system map
for use during interactive development. Use set-init
in your
development namespace to provide an initializer function.
No-argument function to return the initial (unstarted) system map for use during interactive development. Use `set-init` in your development namespace to provide an initializer function.
(reset)
Stops the system, reloads modified source files, and restarts the system.
Stops the system, reloads modified source files, and restarts the system.
(set-init init-fn)
Specifies the user-defined initializer function to use for
constructing the system. Call set-init
at the top-level in your
development namespace. init-fn is a function of one argument, the
previous (stopped) system map, which will be nil the first time it
is called. init-fn should return an (unstarted) component system
map. Most init-fn implementations will ignore the argument and
simply construct a new system map, but you may optionally copy state
from the old system.
Specifies the user-defined initializer function to use for constructing the system. Call `set-init` at the top-level in your development namespace. init-fn is a function of one argument, the previous (stopped) system map, which will be nil the first time it is called. init-fn should return an (unstarted) component system map. Most init-fn implementations will ignore the argument and simply construct a new system map, but you may optionally copy state from the old system.
(start)
Initializes and starts a new system running, updates #'system
Initializes and starts a new system running, updates #'system
(stop)
Stops the system if it is currently running, updates #'system. Any
exception thrown during component/stop
will be printed but
otherwise ignored.
Stops the system if it is currently running, updates #'system. Any exception thrown during `component/stop` will be printed but otherwise ignored.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close