(ctx-values ctx key)
return the values of the key in the context
return the values of the key in the context
(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
(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
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |