[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] What bundle class loaded from

2008/11/26 Fredrik Alströmer <roe@xxxxxxx>
On a similar note, is there a way to access the actual bundle file?
Like for running an external javac-process (think tomcat jasper),
which needs a classpath.

no - but I guess you could either use ClassLoader.getResource()
or the Bundle resource APIs to grab the classfiles from the bundle
and then stuff them into a URLClassLoader

that might work...
 
On Mon, Nov 24, 2008 at 18:15, BJ Hargrave <hargrave@xxxxxxxxxx> wrote:
> PackageAdmin.getBundle(Class)
> --
>
> BJ Hargrave
> Senior Technical Staff Member, IBM
> OSGi Fellow and CTO of the OSGi Alliance
> hargrave@xxxxxxxxxx
> office: +1 386 848 1781
> mobile: +1 386 848 3788
>
>
> From:
> Oleg Zhurakousky <oleg.zhurakousky@xxxxxxxxxxxxxxxx>
> To: Equinox development mailing list <equinox-dev@xxxxxxxxxxx>
> Date: 2008/11/24 12:04
> Subject: [equinox-dev] What bundle class loaded from
> Sent by: equinox-dev-bounces@xxxxxxxxxxx
> ________________________________
>
>
> I know how to do it the "hard way", but was wondering if there is and
> elegant way to determine which Bundle loaded a class?
> Thanks
> Oleg
> _______________________________________________
> equinox-dev mailing list
> equinox-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/equinox-dev
>
>
> _______________________________________________
> equinox-dev mailing list
> equinox-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/equinox-dev
>
>
_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev



--
Cheers, Stuart