On Aug 2, 2008, at 12:17 PM, BJ Hargrave wrote:
> Let's say that foo and car are installed. Foo gets resolved and
> uses its "a" export to satisfy its "a" import; car does not get
used.
>
Well either foo exports a OR imports a. It NEVER imports it own
export.
> And so we're back to what 3.7 means by discarding the import. If
> the import is discarded then there's no wire. If there's no wire
> then there's no information to support the "uses" directive.
The uses directive is on the export of b. So it does not matter
whether foo export or imports a. That has no bearing on b.
> If
> there's no "uses" directive then there's no "uses" constraint.
The uses constraint does not go away since foo ALWAYS exports b. And
the uses constraint is on that export. So anyone who imports b from
foo will be constrained by the uses directive.
>
> Now bar gets wired. There's no constraint to tell it to use foo and
> not car to wire "a".
Thanks BJ and Richard. This is now clear in my head.
Regards,
Alan
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev