Hi, You can declare the bundle that does not contain any Class as Fragment (say A) of another bundle (say B). The resources contained in the fragment A will be visible from the Classloader of B.
Regards, /Etienne -----Message d'origine----- De : [email protected] [mailto:[email protected]] De la part de Alasdair Nottingham Envoyé : jeudi 28 octobre 2010 16:41 À : [email protected] Objet : Re: Getting a Bundle ClassLoader That does not help me because I have a Bundle, not a Class in the bundle. I have a fall back if I can't find it, but the fallback has lifecycle and memory overhead issues I would like to not have to deal with. On 28 October 2010 15:34, Guillaume Sauthier <[email protected]> wrote: > Hi Alasdair > > There is no direct API to do that. > But you can use a class loaded by this bundle and then call > Class.getClassLoader() > > Cheers > --Guillaume > > Le 28/10/2010 16:32, Alasdair Nottingham a écrit : >> >> Hi, >> >> I'm sure that asking this question will get me shot, but here goes. I >> have a Bundle and I would like to get hold of the ClassLoader that >> felix holds for the bundle. >> >> Is it possible to do this for Felix? >> >> Thanks >> Alasdair >> >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > -- Alasdair Nottingham [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

