This may be what was meant by the Fragment suggestion earlier, but... Include the bundle in a wrapper bundle, include the bundle in the wrapper's Bundle-ClassPath, export everything in the bundle, instantiate the bundle's activator in the wrapper's activator? Then you'd certainly have the bundle's classloader...
Don On Thu, Oct 28, 2010 at 2:35 PM, Alasdair Nottingham <[email protected]> wrote: > I don't have a specific bundle in mind, but I need the code I'm writing to > cope with that. > > Not sure what you mean by buddy loading though. > > Alasdair Nottingham > > On 28 Oct 2010, at 16:40, Christopher Brind <[email protected]> wrote: > >> I see, so the classes that make up your interfaces array are not from the >> Bundle you're interested in. >> >> This some kind of buddy-loading magic you're doing? :) >> >> Cheers, >> Chris >> >> >> >> >> On 28 October 2010 16:27, Alasdair Nottingham <[email protected]> wrote: >> >>> Proxy.newProxyInstance(bundle, interfaces) just doesn't work for some >>> reason :) >>> >>> Alasdair >>> >>> On 28 October 2010 16:07, Christopher Brind <[email protected]> wrote: >>>> Hi Alasdair, >>>> >>>> Just curious, but I have to ask why? >>>> >>>> What does ClassLoader have that Bundle doesn't (that you need)? :) >>>> >>>> Cheers, >>>> Chris >>>> >>>> >>>> On 28 October 2010 16:04, Alasdair Nottingham <[email protected]> wrote: >>>> >>>>> On 28 October 2010 16:02, Richard S. Hall <[email protected]> wrote: >>>>>> On 10/28/10 10:32, Alasdair Nottingham wrote: >>>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> I'm sure that asking this question will get me shot, but here goes. >>>>>> >>>>>> Remind me to smack you the next time I see you. ;-) >>>>> >>>>> Phew, I'm not sure when I'll next be at a F2F so I'm safe, you'll have >>>>> forgotten by then. >>>>> >>>>>> >>>>>>> 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? >>>>>> >>>>>> No, but coming in R4.3, this will be possible in a standard way. We >>> might >>>>>> implement this feature before R4.3 goes final over the coming months, >>> but >>>>> it >>>>>> would be done in provisional Felix API... >>>>>> >>>>> >>>>> I know, I am planning on using it when it comes, I was just hoping for >>>>> something better sooner. >>>>> >>>>>> -> richard >>>>>> >>>>>>> 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] >>>>> >>>>> >>>> >>> >>> >>> >>> -- >>> 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

