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()
1.4m articles
1.4m replys
5 comments
57.0k users