My question, is more if foo-2.0 is already installed and then we install foo-1.0, is there a reqirement that foo-1.0 is wired to foo-2.0 instead of exporting its package with version 1.0 ?
On Fri, Jun 19, 2009 at 14:45, Neil Bartlett<[email protected]> wrote: > Both are legal. The actual result depends on the order in which these two > bundles are resolved, and the presence of other bundles which may import the > 1.0 version of the package and will not necessarily be rewired until a > refresh operation is performed. > > Regards > Neil > > ------Original Message------ > From: Guillaume Nodet > Sender: [email protected] > To: OSGi Developer Mail List > ReplyTo: OSGi Developer Mail List > Subject: [osgi-dev] Resolution of bundles importing and exporting the > samepackage > Sent: 19 Jun 2009 13:31 > > Let's say I have the following bundles: > > foo-1.0: > Export-Package: a;version="1.0" > Import-Package: a;version="1.0" > > foo-2.0: > Export-Package: a;version="2.0" > Import-Package: a;version="2.0" > > I first install foo-2.0 on the runtime, then bundle foo-1.0. > > Reading section 3.7, the outcome of the overlapping package resolution > could be either external or internal, but at the end of section, it > says "An exporter with a higher version is preferred over an exporter > with a > lower version." > > So the question is, would this be legal for the runtime to resolve > those bundles the following way: > > foo-2.0: > Export-Package: a;version="2.0" > foo-1.0: > Export-Package: a;version="1.0" > > or does it have to be: > foo-2.0: > Export-Package: a;version="2.0" > foo-1.0: > Import-Package: a;version="2.0" > > -- > Cheers, > Guillaume Nodet > ------------------------ > Blog: http://gnodet.blogspot.com/ > ------------------------ > Open Source SOA > http://fusesource.com > _______________________________________________ > OSGi Developer Mail List > [email protected] > https://mail.osgi.org/mailman/listinfo/osgi-dev > > > Sent from my BlackBerry® > > _______________________________________________ > OSGi Developer Mail List > [email protected] > https://mail.osgi.org/mailman/listinfo/osgi-dev > -- Cheers, Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/ ------------------------ Open Source SOA http://fusesource.com _______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev
