Liking cljdoc? Tell your friends :D

com.github.clojure.di.core


ctx-valuesclj

(ctx-values ctx key)

return the values of the key in the context

return the values of the key in the context
sourceraw docstring

defcompcljmacro

(defcomp fn-name & fdecl)

a macro to define a di component The arguments will injected automatically by di And the return value can be injected by other components through the qualified keyword of this funcion

a macro to define a di component
The arguments will injected automatically by di
And the return value can be injected by other components through the qualified keyword of this funcion
sourceraw docstring

defdicljmacro

(defdi fn-name & fdecl)
source

dicljmacro

(di & fdecl)
source

executeclj

(execute components)
(execute components init-ctx)
(execute components init-ctx opts)

execute the components in their dependency order supported options: :merge-fn - a map of {key merge-fn}, the merge-fn is a function that takes a key and a list of values, and return the merged value where the value is a pair of [key-of-the-provider value] :init-roots - a seq of the components key to be inited, if roots is not empty, then only roots and their dependencies will be inited

execute the components in their dependency order
supported options:
:merge-fn - a map of {key merge-fn}, 
  the merge-fn is a function that takes a key and a list of values, and return the merged value
  where the value is a pair of [key-of-the-provider value]
:init-roots - a seq of the components key to be inited, if roots is not empty, then only roots and their dependencies will be inited
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