(add-classpath jar-or-dir)
(add-classpath jar-or-dir classloader)
A corollary to the (deprecated) add-classpath
in clojure.core. This implementation
requires a java.io.File or String path to a jar file or directory, and will attempt
to add that path to the right classloader (with the search rooted at the current
thread's context classloader).
Inspired by https://github.com/cemerick/pomegranate
A corollary to the (deprecated) `add-classpath` in clojure.core. This implementation requires a java.io.File or String path to a jar file or directory, and will attempt to add that path to the right classloader (with the search rooted at the current thread's context classloader). Inspired by https://github.com/cemerick/pomegranate
(classloader-hierarchy)
(classloader-hierarchy tip)
Returns a seq of classloaders, with the tip of the hierarchy first. Uses the current thread context ClassLoader as the tip ClassLoader if one is not provided.
Returns a seq of classloaders, with the tip of the hierarchy first. Uses the current thread context ClassLoader as the tip ClassLoader if one is not provided.
(modifiable-classloader? cl)
Returns true iff the given ClassLoader is of a type that satisfies the dynapath.dynamic-classpath/DynamicClasspath protocol, and it can be modified.
Returns true iff the given ClassLoader is of a type that satisfies the dynapath.dynamic-classpath/DynamicClasspath protocol, and it can be modified.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close