felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alin Dreghiciu" <adreghi...@gmail.com>
Subject Re: felix commons
Date Fri, 11 May 2007 06:05:48 GMT
Sorry I was to quick on answers. Indeed is only about java.* packages and
not javax.* packages.

Alin Dreghiciu

On 5/10/07, Richard S. Hall <heavy@ungoverned.org> wrote:
>
>
> That is incorrect. Bundles must import all referenced packages outside of
> java.*...this includes all javax.* packages.
>
> For those coming from Equinox, you might realize this since it delegates
> everything to the parent by default, but this is not really recommended by
> the sepc.
>
> I would assume that some pom files are excluding javax because they want
> to eliminate unnecessary import that BND detects.
>
> In short, if you use it you must import it.
>
> -> richard
>
> -----Original Message-----
>
> From:  "Alin Dreghiciu" <adreghiciu@gmail.com>
> Subj:  Re: felix commons
> Date:  Thu 10. May 2007 6:51
> Size:  604 bytes
> To:  dev@felix.apache.org
>
> You don't need to import them since the framework has to delegate to the
> parent class loader as explained in 3.8.4 in osgi core specs.
>
> Cheers,
> Alin Dreghiciu
>
> On 5/10/07, Hampel, Michael <michael.hampel@siemens.com> wrote:
> >
> > Hello,
> >
> > I have a question regarding the poms in Felix Commons.
> > Some of these poms prohibit the import of javax packages by adding
> > !javax.* to the <Import-Package> element,
> > others are not doing it like avalon or log4j.
> > Should I import  JRE classes or not - is this because they are loaded by
> > the system bundle?
> >
> > Thanx in advance for any help,
> >
> > Michael
> >
> >
> >
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message