When I created the "inspect" command for Gogo, I just made up the terminology, which gave us things like:

    inspect package capability

Which could also be abbreviated:

    inspect p c

Or other abbreviations since I was using startsWith() to compare the arguments.

The first argument to the inspect command, I called "type" although more technically it is the "namespace" of the capability/requirement. The following types are supported:

    package (Import-Package)
    bundle (Require-Bundle)
    fragment (Fragment-Host)
    service (generic service dependency)

Now, for OSGi R4.3, the OSGi spec has adopted a more generic dependency model (similar to the model that the Felix framework uses internally). As a result, most of the above types (now explicitly called namespaces) have new official values:

    osgi.wiring.package
    osgi.wiring.bundle
    osgi.wiring.host

Note that there is no official OSGi namespace for services yet and the fragment namespace is actually the reverse of what I was using. Further, new Provide-Capability/Require-Capability headers give you the ability to have arbitrary dependencies for custom namespaces.

To deal with this, I'd like to change the "inspect" command like this:

1. Drop old namespace names (i.e., package, bundle, fragment).
2. Adopt new official namespace names (i.e., osgi.wiring.package,
   osgi.wiring.bundle, osgi.wiring.host).
3. Allow abbreviations to be entered using the first letter of each
   namespace (e.g., owp == osgi.wiring.package); this would also
   provide a generic way to handle abbreviations for custom namespaces
   too...of course, you will also be able to type in the entire
   namespace name too.

The "service" namespace would stay the same at least until there is an official namespace for it.

Thoughts?

-> richard

Reply via email to