JVM-only interop. Babashka ships neither java.lang.management nor
Clojure's class loaders, so this namespace is loaded (through
requiring-resolve) only when the parent runs on the JVM.
JVM-only interop. Babashka ships neither `java.lang.management` nor Clojure's class loaders, so this namespace is loaded (through `requiring-resolve`) only when the parent runs on the JVM.
(add-classpath! paths)Put the directories and jars paths on this JVM's classpath, as
kaocha.classpath/add-classpath does when Kaocha loads a suite. The
root of clojure.lang.Compiler/LOADER gets a DynamicClassLoader when
it has no value, and each path is added to every DynamicClassLoader
from the current loader up, so require and clojure.java.io/resource
find what is under them on any thread. Returns the current loader.
Put the directories and jars `paths` on this JVM's classpath, as `kaocha.classpath/add-classpath` does when Kaocha loads a suite. The root of `clojure.lang.Compiler/LOADER` gets a `DynamicClassLoader` when it has no value, and each path is added to every `DynamicClassLoader` from the current loader up, so `require` and `clojure.java.io/resource` find what is under them on any thread. Returns the current loader.
(exit-caller own)For a shutdown hook: when this JVM is shutting down because a thread
other than own called System/exit, the stack frame that called it as
text, or "an unknown caller"; else nil. System/exit goes through
Runtime.exit, and its thread waits there while the hooks run. A
shutdown that a signal started has no such thread.
For a shutdown hook: when this JVM is shutting down because a thread other than `own` called `System/exit`, the stack frame that called it as text, or "an unknown caller"; else nil. `System/exit` goes through `Runtime.exit`, and its thread waits there while the hooks run. A shutdown that a signal started has no such thread.
(input-arguments)This JVM's launch options (-Xmx..., -D..., --add-opens ...).
This JVM's launch options (`-Xmx...`, `-D...`, `--add-opens ...`).
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 |