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()
2.1m questions
2.1m answers
60 comments
57.0k users