Bukkit/Bukkit — pull request #451 by CmdrDats (2011-12-12 02:11:33+00:00)
Title: class-loader-of option in plugin.yml

Allow plugins to specify class-loader-of so that they can be loaded in the same classloader as a depend plugin (provide the single plugin name, same as depend, but not a list)

For my specific case, I'm implementing a way of writing plugins using clojure. Clojure really doesn't work well across classloaders. I had tried all sorts of alternatives, including overriding the getResourceAsInputStream (et al) in the PluginClassLoader, but that still gave all sorts of issues.

Out of everything I've tried, this is the only thing that really works cleanly - I tried with all sorts of different ways from my clojure plugin first, but I didn't have enough accessibility from the plugin itself in order to override the classloader correctly.

I hope that this makes it into the latest build so that I can at some stage make the Clojure plugin widely available - without this change (or something of similar nature), I don't think I can push this to anything other than a private hobby-horse since making plugins that extend from the Clojure plugin wouldn't work :/

Thank you for your time!