[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [equinox-dev] Question regarding class loader and getPackages()
- From: "Jan Stette" <jan.stette@xxxxxxxxx>
- Date: Mon, 2 Jun 2008 18:38:22 +0100
- Delivered-to: email@example.com
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=PQElUUSf9c284cVFpQhtU72R42RqOPef/eDXKJNKjcHYR/e2pcZBebYzTvfPqnJHOCReQJUlOKXjzPVwGSoXK+0IOAgXZZsGMThivOfX/f+XJhAWQomIK01D9r50WYH5PXSQ3L5/tOi/VICED2NRkjpnf4AlgzG2iKpAsLCL2ZE=
2008/6/2 BJ Hargrave <hargrave@xxxxxxxxxx>:
> 1. The call is not overridden in the Equinox classloader, so
the I don't think imported packages should be listed since
they are imported from other bundles.
> default implementation in java.lang.ClassLoader is used. Hence,
> only the bundle's own packages, and the system packages are returned.
Does it matter which bundles the packages come from? From the client of the classloader, I would have thought this should be transparent, i.e. that it returns all packages that are visible through this classloader. From the javadoc for java.lang.ClassLoader.getPackages(): "Returns all of the Packages defined by this class loader and its ancestors". In an OSGi environment, wouldn't it be natural to include classloaders from bundles depended on as well?
Anyway, is this a question better suited for osgi-dev instead of this list?