Liking cljdoc? Tell your friends :D
Clojure only.

strojure.fitter.component

Defines system component with lifecycle (start, stop etc.) functions.

Defines system component with lifecycle (start, stop etc.) functions.
raw docstring

Componentcljprotocol

System component lifecycle functions.

System component lifecycle functions.

start-fnclj

(start-fn component)

Returns function to start component instance. The returned function receives a map of other component instances which this component depends on, and returns started instance.

(fn start [system] instance)
Returns function to start component instance. The returned function
receives a map of other component instances which this component depends on,
and returns started instance.

    (fn start [system] instance)

stop-fnclj

(stop-fn component)

Returns function to stop component instance, or nil if component does not need to be stopped:

(fn stop! [instance] (.stop instance))
Returns function to stop component instance, or `nil` if component does not
need to be stopped:

    (fn stop! [instance] (.stop instance))

suspend-fnclj

(suspend-fn component)

Returns function to suspend component instance, or nil if component is not suspendable:

(fn suspend! [instance old-system]
  ;; Return function to resume component instance with new system.
  (fn resume [new-system]
    ;; Return resumed or restarted instance using old and new systems.
    resumed-instance))
Returns function to suspend component instance, or `nil` if component is
not suspendable:

    (fn suspend! [instance old-system]
      ;; Return function to resume component instance with new system.
      (fn resume [new-system]
        ;; Return resumed or restarted instance using old and new systems.
        resumed-instance))

sourceraw docstring

ofclj

(of start stop!)
(of start stop! suspend!)

Returns component as persistent map assembled from provided functions.

Returns component as persistent map assembled from provided functions.
sourceraw docstring

startclj

(start component system)

Returns component instance started in the system context. The system is a map of other component instances which this component depends on.

Returns component instance started in the system context. The `system` is a
map of other component instances which this component depends on.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close