We do some classpath scanning stuff both
in lambdaisland.witchcraft.reflect
(which much of the interop is based
on), and in [[lambdaisland.witchcraft.event]] (to find out which events are
supported by the running system)
We do some classpath scanning stuff both in [[lambdaisland.witchcraft.reflect]] (which much of the interop is based on), and in [[lambdaisland.witchcraft.event]] (to find out which events are supported by the running system)
(base-loader)
Get the loader that Clojure uses internally to load files
This is usually the current context classloader, but can also be clojure.lang.Compiler/LOADER.
Get the loader that Clojure uses internally to load files This is usually the current context classloader, but can also be clojure.lang.Compiler/LOADER.
(context-classloader)
(context-classloader thread)
Get the context classloader for the current thread
Get the context classloader for the current thread
(dynamic-classloader? cl)
Is the given classloader a [[clojure.lang.DynamicClassLoader]]
Is the given classloader a [[clojure.lang.DynamicClassLoader]]
(inject-jar-by-class! klz)
Given a classname (string), find the .class
file that defines it, then find
the JAR that contains it, then add that JAR to the root classloader (i.e. the
bottom-most clojure.lang.DynamicClassloader, which sits above the
PluginClassloader). This ensures that any code that deals with the classpath
can see the classes in these jars.
Given a classname (string), find the `.class` file that defines it, then find the JAR that contains it, then add that JAR to the root classloader (i.e. the bottom-most clojure.lang.DynamicClassloader, which sits above the PluginClassloader). This ensures that any code that deals with the classpath can see the classes in these jars.
(priority-classloader? cl)
Is the given classloader a [[priority-classloader]]
Is the given classloader a [[priority-classloader]]
(root-loader)
(root-loader cl)
Find the bottom-most DynamicClassLoader in the chain of parent classloaders
Find the bottom-most DynamicClassLoader in the chain of parent classloaders
Classes that are in jars that we care about
Classes that are in jars that we care about
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close