| Summary: | [RFC 154] Support for generic capabilities and requirements | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Equinox | Reporter: | Thomas Watson <tjwatson> | ||||||||||
| Component: | Framework | Assignee: | Thomas Watson <tjwatson> | ||||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||||
| Severity: | normal | ||||||||||||
| Priority: | P3 | CC: | john.arthorne, markus.kell.r | ||||||||||
| Version: | 3.7 | ||||||||||||
| Target Milestone: | 3.7 M2 | ||||||||||||
| Hardware: | PC | ||||||||||||
| OS: | Mac OS X - Carbon (unsup.) | ||||||||||||
| Whiteboard: | |||||||||||||
| Bug Depends on: | |||||||||||||
| Bug Blocks: | 289124 | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Thomas Watson
Targeting M2. I am hoping to map this onto the existing Eclipse headers in such a way that the resolve treats both meta-data the same. Created attachment 177478 [details]
patch + tests
Initial implementation. The RFC is still being worked. The following additions may be coming:
- package "uses" directive support for capabilities
- support attribute of type list
I released the patch to head. Along with the items in comment 2 we also need to restructure the way fragment capabilities work. Today they are modeled as completely separate capabilities that are provided by the fragment. Now that a uses directive can be specified on a capability we need to model the capabilities as provided by the host to get a proper view of the class space constraints. Created attachment 177646 [details]
restructure fragment capabilities
This patch restructures the capabilities provided by fragment bundles. They are not merged into the host bundles the fragment is attached to. This is similar to exported packages except there is no collision detection needed.
Created attachment 177653 [details]
restructure fragment capabilities + tests
more tests.
patch released. Still need to work on support: - uses directive - getting directives on capabilities - refine the support for typed attribute Lists. > Still need to work on support:
- adding @since tag for the new APIs
(In reply to comment #7) > > Still need to work on support: > - adding @since tag for the new APIs Thanks I added the tags and set my baseline on my OSGi R4.3 workspace. I also released a change to filters specified on Eclipse-GenericRequire, filter is an attribute not a directive. (In reply to comment #9) > I also released a change to filters specified on Eclipse-GenericRequire, filter > is an attribute not a directive. That was really meant for filter attributes on the OSGi header Require-Capability not Eclipse-GenericRequire. I released fixes to typed attribute lists. Still need to do the following: Still need to work on support for: - uses directive - getting directives on capabilities Created attachment 178663 [details]
patch + test for uses and directives on capabilities
Here is the last bit of changes for this RFC. I have implemented the uses directive for capabilities. There are still tons of warnings about usage of raw types. I will fix these in a separate bug.
I released the latest patch. Any more work for RFC 154 will be done in another bug report. |