(dynamic-loader)
returns the clojure runtime classloader
(dynamic-loader) => #(instance? clojure.lang.DynamicClassLoader %)
returns the clojure runtime classloader (dynamic-loader) => #(instance? clojure.lang.DynamicClassLoader %)
loads class from an external source
(load-class "target/classes/test/Cat.class") => test.Cat
(load-class "<.m2>/org/yaml/snakeyaml/1.5/snakeyaml-1.5.jar" "org/yaml/snakeyaml/Dumper.class") => org.yaml.snakeyaml.Dumper
(load-class '[org.yaml/snakeyaml "1.5"] "org/yaml/snakeyaml/Dumper.class") => org.yaml.snakeyaml.Dumper
loads class from an external source (load-class "target/classes/test/Cat.class") => test.Cat (load-class "<.m2>/org/yaml/snakeyaml/1.5/snakeyaml-1.5.jar" "org/yaml/snakeyaml/Dumper.class") => org.yaml.snakeyaml.Dumper (load-class '[org.yaml/snakeyaml "1.5"] "org/yaml/snakeyaml/Dumper.class") => org.yaml.snakeyaml.Dumper
(path->classname path)
converts the path to a classname (path->classname "test/Dog.class") => "test.Dog"
converts the path to a classname (path->classname "test/Dog.class") => "test.Dog"
opens .class
file from an external source
(to-bytes "target/classes/test/Dog.class")
=> checks/bytes?
opens `.class` file from an external source (to-bytes "target/classes/test/Dog.class") => checks/bytes?
(unload-class name)
unloads a class from the current namespace
(unload-class "test.Cat") ;; #object[java.lang.ref.SoftReference 0x10074132 ;; "java.lang.ref.SoftReference@10074132"]
unloads a class from the current namespace (unload-class "test.Cat") ;; #object[java.lang.ref.SoftReference 0x10074132 ;; "java.lang.ref.SoftReference@10074132"]
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close