[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: buddy class Loading

Raaj,

Buddy class loading helps with situations where a library uses things like Class.forName and expects to be able to load a class that's not directly visible to the library..  Use of java.io.Serializeable often leads to this kind of issue as well.  Eclipse's bundle-scoped class loaders only let a bundle see classes from library on which it depends directly or indirectly.  But you can add
Eclipse-BuddyPolicy: dependent
to your libraries MANIFEST.MF and then that library will be able to load classes from any other bundles that directly or indirectly depends on the library (kind of the reverse of the normal rule, which also continues to apply...


raaj wrote:
Hi,

What is buddy class loading? Please give me some example with plugins.

Thanks in advance
Raaj