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

[DS][RFC-190] Correct pid handling

    XMLWordPrintableJSON

Details

    Description

      The DS 1.3 spec requires multiple service.pid values to be coalesced into a Collection<String> but only if there are multiple values. When there is only a single service.pid value, it must remain a scalar String.

      Furthermore, DS 1.3 adds support for a component to specify multiple pid values in a whitespace separated list. See section 112.4.4:

      "Multiple configuration PIDs can be specified by using a whitespace separated list in the attribute."

      For example:

      configuration-pid="org.osgi.test.cases.component.tb23.MultiplePID1 org.osgi.test.cases.component.tb23.MultiplePID2"

      When specifying multiple pids (with configuration-policy="require" and the configurations present in CM), the current implementation does not satisfy the component. So the component is not activated and does not register its service.

      Attachments

        Activity

          People

            cziegeler Carsten Ziegeler
            cziegeler Carsten Ziegeler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: