Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » BuddyPolicy, Class loaders and Bundle start
BuddyPolicy, Class loaders and Bundle start [message #654925] Thu, 17 February 2011 11:14
Camille Letavernier is currently offline Camille Letavernier
Messages: 421
Registered: February 2011
Senior Member
Hello,

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,
Camille Letavernier

[Updated on: Thu, 17 February 2011 11:23]

Report message to a moderator

Previous Topic:Accessing PUTTY from Eclipse 3.3
Next Topic:extending actionfilters for existing resources
Goto Forum:
  


Current Time: Wed Jul 30 03:14:21 EDT 2014

Powered by FUDForum. Page generated in 0.07715 seconds