I have read a lot of equinox code for this, but still can\'t figure out a non-hacky way of getting the classloader for a osgi bundle in eclipse equinox setup. Is there one?<
In OSGi 4.3 you can use:
bundle.adapt(BundleWiring.class).getClassLoader()