Java Reference
In-Depth Information
Start
Model test bundle
Can requirements
be satisfied by existing
bundles?
No
Is this requirement
satisfiable?
Query repository for
fancyfoods.a
fancyfoods.a
1.1 version < 2
Yes
Bundle A
Bundle-Version: 1.0.0
fancyfoods.pkg
1 version < 2
foo=bar
Is this requirement
satisfiable?
Query repository for
fancyfoods.pkg
Yes
Bundle B
Bundle-Version: 1.0.0
Bundle B
Bundle-Version: 1.1.0
Yes
Query repository for
fancyfoods.z
Is this requirement
satisfiable?
fancyfoods.a
No
No
Is the requirement
optional?
Fail resolution
Yes
Resolution complete
Bundle A
Bundle-Version: 1.0.0
Bundle B
Bundle-Version: 1.0.0
The answer!
Figure 7.8 To resolve a bundle, a resolver will first model its requirements, and then query an
environment for matching capabilities and any transitive requirements of the matching resources.
It will then further refine possible matches based on the resource's attributes and directives.
Search WWH ::




Custom Search