Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-3050

[Gogo Command] Update "inspect" command to work with OSGi R4.3 generic capabilities/requirements

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: gogo.command-0.10.0
    • Fix Version/s: gogo.command-0.12.0
    • Component/s: Gogo Command
    • Labels:
      None

      Description

      OSGi R4.3 introduces generic capabilities and requirements. We need to update the "inspect" command to handle them.

        Issue Links

          Activity

          Hide
          rickhall Richard S. Hall added a comment - - edited

          I've committed an initial pass at trying to make a consistent "inspect" command for pre-/post-OSGi R4.3. It basically works like this:

          inspect ('capability' | 'requirement') <namespace> [<bundles>]

          For pre-OSGi R4.3 the namespaces are: bundle, package, host, service.

          For post-OSGi R4.3 the namespaces are: osgi.wiring.bundle, osgi.wiring.package, osgi.wiring.host, service (non-standard), or any arbitrary namespace string.

          It is possible to abbreviate 'capability' or 'requirement' and <namespace> supports wildcards. So, for example:

          inspect cap *

          Will print out all capabilities of every namespace for every bundle.

          I still have to modify the command to properly detect if it is running on R4.3 or not...currently it assumes R4.3.

          Show
          rickhall Richard S. Hall added a comment - - edited I've committed an initial pass at trying to make a consistent "inspect" command for pre-/post-OSGi R4.3. It basically works like this: inspect ('capability' | 'requirement') <namespace> [<bundles>] For pre-OSGi R4.3 the namespaces are: bundle, package, host, service. For post-OSGi R4.3 the namespaces are: osgi.wiring.bundle, osgi.wiring.package, osgi.wiring.host, service (non-standard), or any arbitrary namespace string. It is possible to abbreviate 'capability' or 'requirement' and <namespace> supports wildcards. So, for example: inspect cap * Will print out all capabilities of every namespace for every bundle. I still have to modify the command to properly detect if it is running on R4.3 or not...currently it assumes R4.3.
          Hide
          rickhall Richard S. Hall added a comment -

          This is basically complete now, but I'll keep this issue open for comments.

          Show
          rickhall Richard S. Hall added a comment - This is basically complete now, but I'll keep this issue open for comments.
          Hide
          rickhall Richard S. Hall added a comment -

          I've committed my implementation as proposed. After no feedback, I'm closing this one.

          Show
          rickhall Richard S. Hall added a comment - I've committed my implementation as proposed. After no feedback, I'm closing this one.
          Hide
          sahoo Sahoo added a comment -

          OSGi EE spec has standardised the namespace for service as osgi.service. Should we migrate to the new name?

          Show
          sahoo Sahoo added a comment - OSGi EE spec has standardised the namespace for service as osgi.service. Should we migrate to the new name?
          Hide
          rickhall Richard S. Hall added a comment -

          Probably. Open a new issue for it, thanks!

          Show
          rickhall Richard S. Hall added a comment - Probably. Open a new issue for it, thanks!

            People

            • Assignee:
              rickhall Richard S. Hall
              Reporter:
              rickhall Richard S. Hall
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development