Bug 211611 - Use Require/Provided-Capabilities for NetBeansInOSGi
Use Require/Provided-Capabilities for NetBeansInOSGi
Status: NEW
Product: platform
Classification: Unclassified
Component: Netigso
7.2
All All
: P3 (vote)
: 7.3
Assigned To: Jaroslav Tulach
issues@platform
:
Depends on:
Blocks: 210325
  Show dependency treegraph
 
Reported: 2012-04-23 23:09 UTC by Jesse Glick
Modified: 2012-06-19 16:13 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2012-04-23 23:09:09 UTC
Splitting this off from bug #210325 since it does not seem necessary for 7.2.
Comment 1 Jesse Glick 2012-04-24 12:59:59 UTC
My original assumption was that NB tokens would map directly to capability names with no qualifications:

OpenIDE-Module-Provides: some.Interface
OpenIDE-Module-Requires: another.Interface

=>

Provide-Capability: some.Interface
Require-Capability: another.Interface

Yarda however suggested another idiom:

"For our purposes we could probably define org.netbeans.token
capability. With attribute token and use it like:

OpenIDE-Module-Provides: xyz

Provide-Capability: org.netbeans.token;token:String=xyz

for providing. And for requiring, needing or recommending:

Require-Capability: org.netbeans.token;resolve:=mandatory/optional;
  filter:=(token=xyz);effective:=startup"

Not sure if the more complex idiom offers some advantages.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo