File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -653,6 +653,25 @@ This metadata can be recalled with `integrant.core/describe`:
653
653
; ; => {:doc "A Ring adapter for the Jetty webserver."}
654
654
```
655
655
656
+ ### Loading hierarchies and annotations
657
+
658
+ Loading a Clojure namespace can be slow and potentially side-effectful,
659
+ and it's not possible to know ahead of time whether a namespace adds
660
+ keyword annotations or hierarchy information.
661
+
662
+ To solve this issue, Integrant provides ways of loading keyword
663
+ hierarchies and annotations from edn files on the classpath:
664
+
665
+ ```clojure
666
+ (ig/load-hierarchy )
667
+ (ig/load-annotations )
668
+ ```
669
+
670
+ These functions will search the classpath for files named
671
+ `integrant/hierarchy.edn` and `integrant/annotations.edn` respectively.
672
+ Including these files in a library will allow Integrant to quickly
673
+ discover information about the keywords used in the library.
674
+
656
675
## Reloaded workflow
657
676
658
677
See [Integrant-REPL](https://github.com/weavejester/integrant-repl ) to
You can’t perform that action at this time.
0 commit comments