Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » ContextFinder and 'jar plugins'
ContextFinder and 'jar plugins' [message #436727] Thu, 15 September 2005 15:33
John J. Franey is currently offline John J. FraneyFriend
Messages: 55
Registered: July 2009
Member
Do I have this right? Does anyone know how to work around it?

A calling plugin invokes a method on a called plugin which is a jar only plugin. To get a resource, the called plugin uses getContextLoader which returns ContextFinder. ContextFinder delegates to the calling plugin's classloader. The calling plugin's classloader doesn't have knowledge of the called plugin's classpath. So resources on the called plugin's classpath are not available to the called plugin in this call chain.

I would like the called plugin to have access to the resources that are on its classpath even though it uses getContextLoader.

For example, RequiredPlugin defines a resource in META-INF, and one of its methods uses getContextLoader().getReources("META-INF/*..") to load the resource. CallingPlugin invokes this method directly. Unless CallingPlugin has this resource on its classpath (like in its own META-INF directory), RequiredPlugin won't find it.


Thanks,
John
Previous Topic:Good examples or ideas
Next Topic:ISelectionProvider question
Goto Forum:
  


Current Time: Sun Dec 08 21:49:57 GMT 2024

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

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

Back to the top