Hi BJ, Neil,

Thank you so much for your helpful answer.
I got it.


Best regards,

Shige


On Mon, 4 Jun 2012 22:43:24 -0400
BJ Hargrave <[email protected]> wrote:

> A bundle can only export a package if it is resolved. So unless Bundle A's 
> dependencies can be met, it cannot be resolved and thus cannot export any 
> packages.
> 
> -- 
> 
> BJ Hargrave
> Senior Technical Staff Member, IBM
> OSGi Fellow and CTO of the OSGi Alliance
> [email protected]
> 
> office: +1 386 848 1781
> mobile: +1 386 848 3788
> 
> 
> 
> 
> 
> From:   Shigekuni Kondo <[email protected]>
> To:     OSGi Developer Mail List <[email protected]>, 
> Date:   2012/06/04 22:18
> Subject:        Re[2]: [osgi-dev] Question of Export Package
> Sent by:        [email protected]
> 
> 
> 
> Hi Neil,
> 
> 
> Thank you very much for your quick response to my question.
> I see, I understand.
> 
> Let me make sure if I understood right.
> When BundleB is tried to resolved, the resolving process for
> BumdleA is executed at that time.
> In this case, because BundleA cannot be resolved, package 'q' is
> not exported (and BundleB cannot import the package q from BundleA).
> 
> If so, is the definition of it described in the spec?
> As far as I checked, I couldn't find the distinct description.
> 
> 
> Best regards,
> 
> Shige
> 
> 
> 
> 
> On Mon, 04 Jun 2012 13:30:38 +0100
> Neil Bartlett <[email protected]> wrote:
> 
> > Kondo-san,
> > 
> > In both cases the answer is no. If BundleA does not resolve -- i.e. 
> > because either of its imported packages are not satisfied -- then none 
> > of its exports are available to be imported by other bundles. Therefore 
> > BundleB will not resolve unless an alternative provider of the "q" 
> > package can be found.
> > 
> > Kind regards,
> > Neil Bartlett
> > 
> > > Shigekuni Kondo <mailto:[email protected]>
> > > 4 June 2012 13:08
> > > Hi OSGi Experts,
> > >
> > >
> > > I have questions about Export Package in Core spec(R4.3).
> > >
> > >
> > > [Condition]
> > > BundleA: Import-Package: p, r
> > > Export-Package: q; uses:=p
> > > BundleB: Import-Package: q
> > > BundleC: Export-Package: p
> > > BundleD: Export-Package: r
> > >
> > >
> > > [Question]
> > > 1.
> > > When BundleA, B, C are installed (not BundleD), BundleA cannot
> > > be resolved in this situation.
> > > In this case, can BundleA export the package 'q'?
> > > In other words, can BundleB import the package 'q' from BundleA
> > > when BunldeB is tried to resolve?
> > >
> > > 2.
> > > When BundleA, B, D are installed (not BundleC), BundleA cannot
> > > be resolved in this situation.
> > > In this case, can BundleA export the package 'q'?
> > > In other words, can BundleB import the package 'q' from BundleA
> > > when BunldeB is tried to resolve?
> > >
> > >
> > > Best regards,
> > >
> > > Shige
> > >
> > > _____________________________________________
> > >
> > > Shigekuni Kondo
> > >
> > > Promotion Project 1
> > > NTT Cyber Solutions Laboratories
> > > NIPPON TELEGRAPH AND TELEPHONE CORPORATION
> > >
> > > 1-1 Hikarinooka Yokosuka
> > > Kanagawa 239-0847 Japan
> > > TEL:+81-46-859-3444
> > > FAX:+81-46-855-1282
> > > E-mail:[email protected]
> > > _____________________________________________
> > >
> > >
> > > _______________________________________________
> > > OSGi Developer Mail List
> > > [email protected]
> > > https://mail.osgi.org/mailman/listinfo/osgi-dev
> 
> _____________________________________________
> 
>   Shigekuni Kondo
> 
>   Promotion Project 1
>   NTT Cyber Solutions Laboratories
>   NIPPON TELEGRAPH AND TELEPHONE CORPORATION
> 
>   1-1 Hikarinooka Yokosuka
>   Kanagawa 239-0847 Japan
>   TEL:+81-46-859-3444
>   FAX:+81-46-855-1282
>   E-mail:[email protected]
> _____________________________________________
> 
> 
> _______________________________________________
> OSGi Developer Mail List
> [email protected]
> https://mail.osgi.org/mailman/listinfo/osgi-dev
> 
> 

_____________________________________________

  Shigekuni Kondo

  Promotion Project 1
  NTT Cyber Solutions Laboratories
  NIPPON TELEGRAPH AND TELEPHONE CORPORATION

  1-1 Hikarinooka Yokosuka
  Kanagawa 239-0847 Japan
  TEL:+81-46-859-3444
  FAX:+81-46-855-1282
  E-mail:[email protected]
_____________________________________________


_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to