|BuddyPolicy, Class loaders and Bundle start [message #654925]
||Thu, 17 February 2011 11:14
| Camille Letavernier
Registered: February 2011
I have a framework which relies on reflection to load classes from dependent plug-ins. To be able to load these classes, I use the Eclipse-BuddyPolicy: dependent declaration.
This works well, as I am able to load the classes from external plug-ins depending on the framework. However, when the classes are loaded, the corresponding bundle is not started, which sometimes results in an inconsistent state (For example when I call static objects that are supposed to be instantiated on bundle start).
Is there a way to force a Bundle to start when one of its classes is loaded ? I though that the "Bundle-ActivationPolicy" was done just for that, but it doesn't change anything in my case (Whether it is checked or not, the plug-in is never started when a class is loaded reflectively)
Thank you for your answers,
[Updated on: Thu, 17 February 2011 11:23]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01432 seconds