(collect-autowired ns autowired item-key item-val)
Assoc key value pair in the autowired map in case if the value metadata contains AUTOWIRED-KEY. Returns autowired map.
Assoc key value pair in the autowired map in case if the value metadata contains AUTOWIRED-KEY. Returns autowired map.
(find-components namespaces)
Given a list of namespaces will scan through all public members. Returns a map containing all ns members who contain AUTOWIRED-KEY in the metadata
Given a list of namespaces will scan through all public members. Returns a map containing all ns members who contain AUTOWIRED-KEY in the metadata
(find-project-namespaces)
(find-project-namespaces pattern)
Will return all namespaces names as symbols from the classpath.
Limit the number of resources by providing a pattern argument.
By default, namespaces will be limited to user.dir
path.
Passing nil as argument will lead to returning all namespaces.
Will return all namespaces names as symbols from the classpath. Limit the number of resources by providing a pattern argument. By default, namespaces will be limited to `user.dir` path. Passing nil as argument will lead to returning all namespaces.
(get-comp-deps component-meta)
Given a function metadata map will traverse all function arguments (:arglists) and collect all items which has a qualified keywords in the metadata. E.g. for function like (defn my-func [^:some/dependency dep] ...) will return a vector like [:some/dependency]. Doesn't support multi-arity functions atm.
Given a function metadata map will traverse all function arguments (:arglists) and collect all items which has a qualified keywords in the metadata. E.g. for function like (defn my-func [^:some/dependency dep] ...) will return a vector like [:some/dependency]. Doesn't support multi-arity functions atm.
(get-params-config params-keys)
Given a vector of function parameters names returns a configuration map with integrant references. E.g. [:some/dependency] => {:dependency (ig/ref :some/dependency)}
Given a vector of function parameters names returns a configuration map with integrant references. E.g. [:some/dependency] => {:dependency (ig/ref :some/dependency)}
(prep-component config comp-key comp-value)
Prepare a single component. Few things required for every component:
Prepare a single component. Few things required for every component: 1. initialize integrant methods for that component (ig/init-key, ig/halt-key!) 2. find component dependencies and create integrant references for them 3. add a component configuration to the main config map
(prep-components-config components)
Given a map of components will prepare integrant lifecycle methods and configuration for each of them. Returns an integrant style config map for all given components.
Given a map of components will prepare integrant lifecycle methods and configuration for each of them. Returns an integrant style config map for all given components.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close