Liking cljdoc? Tell your friends :D

lambdaisland.witchcraft.classpath-hacks

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)
raw docstring

base-loaderclj

(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.
sourceraw docstring

class-resourceclj

(class-resource classname)
source

context-classloaderclj

(context-classloader)
(context-classloader thread)

Get the context classloader for the current thread

Get the context classloader for the current thread
sourceraw docstring

dynamic-classloader?clj

(dynamic-classloader? cl)

Is the given classloader a [[clojure.lang.DynamicClassLoader]]

Is the given classloader a [[clojure.lang.DynamicClassLoader]]
sourceraw docstring

inject-jar-by-class!clj

(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.
sourceraw docstring

inject-jars!clj

source

priority-classloader?clj

(priority-classloader? cl)

Is the given classloader a [[priority-classloader]]

Is the given classloader a [[priority-classloader]]
sourceraw docstring

root-loaderclj

(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
sourceraw docstring

tracer-classesclj

Classes that are in jars that we care about

Classes that are in jars that we care about
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close