Is this possible somehow?
I mean for my own bundle?
Thank you Misha
ps More specifically, I am interesting in having a class within my bundle (well, within a fragment) return my custom classloader from a call to
MyClass.class.getClassLoader()
rather than the bundle's???
Thank you very much
Yours Misha
ps Some helpful links I've found that don't seem to answer this question :(
http://shylendrabhat.com/blog/2009/11/21/class-loader-architecture-comparison-java-j2ee-and-osgi/
http://codescale.wordpress.com/2009/05/22/basics-about-osgi-classloading/
If you're using Equinox as your OSGi implementation, I think you can have a look the classloader hook .
You can check out the code of Equinox Transforms to see how to contribute your hook.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.