Skip to content

Instantly share code, notes, and snippets.

@xeqi
Created December 9, 2011 02:40
Show Gist options
  • Save xeqi/1449897 to your computer and use it in GitHub Desktop.
Save xeqi/1449897 to your computer and use it in GitHub Desktop.
swank classloader-heirarchy
user> (defn classloader-heirarchy
([]
(classloader-heirarchy (clojure.lang.RT/baseLoader)))
([tip]
(if tip
(conj (classloader-heirarchy (.getParent tip)) tip) [])))
#'user/classloader-heirarchy
user> (classloader-heirarchy)
[#<ExtClassLoader sun.misc.Launcher$ExtClassLoader@7ea2dfe> #<AppClassLoader sun.m\
isc.Launcher$AppClassLoader@61ba34f2> #<DynamicClassLoader clojure.lang.DynamicCla\
ssLoader@4a6ca1a6> #<DynamicClassLoader clojure.lang.DynamicClassLoader@1896d2c2>]
user> (classloader-heirarchy)
[#<ExtClassLoader sun.misc.Launcher$ExtClassLoader@7ea2dfe> #<AppClassLoader sun.m\
isc.Launcher$AppClassLoader@61ba34f2> #<DynamicClassLoader clojure.lang.DynamicCla\
ssLoader@28b56559> #<DynamicClassLoader clojure.lang.DynamicClassLoader@533c2ac3>]
user> (classloader-heirarchy)
[#<ExtClassLoader sun.misc.Launcher$ExtClassLoader@7ea2dfe> #<AppClassLoader sun.m\
isc.Launcher$AppClassLoader@61ba34f2> #<DynamicClassLoader clojure.lang.DynamicCla\
ssLoader@9ec265c> #<DynamicClassLoader clojure.lang.DynamicClassLoader@635adc6>]
user> (classloader-heirarchy)
[#<ExtClassLoader sun.misc.Launcher$ExtClassLoader@7ea2dfe> #<AppClassLoader sun.m\
isc.Launcher$AppClassLoader@61ba34f2> #<DynamicClassLoader clojure.lang.DynamicCla\
ssLoader@517c804b> #<DynamicClassLoader clojure.lang.DynamicClassLoader@4bea71d4>]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment