[EMAIL PROTECTED] wrote:
How does Require-Bundle interact with package constraints and/or matching
attributes for packages that are exported from the required bundle?
For a concrete example:
A: Import-Package: p; version="[2,3)"
Require-Bundle: B
B: Import-Package: p; version="[1,2)"
Export-Package: q; uses:="p",
r; someattrib=true; mandatory:=someattrib
C: Export-Package: p; version=2
D: Export-Package: p; version=1
Questions:
1. Will A have access to q from B? (note the incompatible constraint on p)
Nope, because I don't think A would resolve at all.
2. Will A have access to r from B? (note the mandatory attribute)
In a different scenario where there was no conflict with p, yes.
3. Will A be resolved at all?
As I said, I don't think so.
Off the top of my head, it looks like there is no way to satisfy the
constraints since A and B import disjoint sets of p.
On a related note: If Require-Bundle is used with visibility:=reexport, do
the reexported packages inherit any directives or attributes from the
required bundle? If so, what happens with split packages?
No, they do not. They must be specified.
-> richard
Thanks in advance,
Josh Arnold
_______________________________________________
OSGi Developer Mail List
[email protected]
http://www2.osgi.org/mailman/listinfo/osgi-dev
_______________________________________________
OSGi Developer Mail List
[email protected]
http://www2.osgi.org/mailman/listinfo/osgi-dev