Back

load-hierarchy (clj)

(source)

function

(load-hierarchy) (load-hierarchy path)
Search the base classpath for all resources that share the same path (by default `integrant/hierarchy.edn`), and use their contents to extend the global `derive` hierarchy. This allows a hierarchy to be constructed without needing to load every namespace. The hierarchy resources should be edn files that map child keywords to vectors of parents. For example: {:example/child [:example/father :example/mother]} This is equivalent: (derive :example/child :example/father) (derive :example/child :example/mother)

Examples