Skip to main content

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 16:14
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 935
Registered: February 2011
Senior Member

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

Camille Letavernier

[Updated on: Thu, 17 February 2011 16: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: Mon Jan 25 18:34:49 GMT 2021

Powered by FUDForum. Page generated in 0.02143 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top