felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl Pauls" <karlpa...@gmail.com>
Subject Re: Searching class spaces - noob
Date Fri, 06 Jun 2008 08:41:20 GMT
On Fri, Jun 6, 2008 at 6:40 AM, Niclas Hedhman <niclas@hedhman.org> wrote:
> On Friday 06 June 2008 01:47, Richard S. Hall wrote:
>> In some
>> cases, this won't be so easy, because you might have to look into the
>> contents of embedded JAR files...
>
> Well, if he has the class (which I believe was the initial question), then I
> think the process would be much easier.
>
> 1) Get the package name from the class name.
> 2) Locate all bundles exporting that package.
> 3) Check which Bundle Classloader equals the class' classloader.
>
> No?

It's more easy in this case because the PackageAdmin.getBundle(Class)
can tell you the bundle that exports the package the class is coming
from.

regards,

Karl

> Cheers
> --
> Niclas Hedhman, Software Developer
>
> I  live here; http://tinyurl.com/2qq9er
> I  work here; http://tinyurl.com/2ymelc
> I relax here; http://tinyurl.com/2cgsug
>



-- 
Karl Pauls
karlpauls@gmail.com

Mime
View raw message