[osgi-dev] Question of Export Package

2012-06-04 Thread Shigekuni Kondo
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

Re: [osgi-dev] Question of Export Package

2012-06-04 Thread Neil Bartlett
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"

Re[2]: [osgi-dev] Question of Export Package

2012-06-04 Thread Shigekuni Kondo
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

Re: Re[2]: [osgi-dev] Question of Export Package

2012-06-04 Thread BJ Hargrave
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 hargr...@us.ibm.com office: +1 386 848