Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-7794

osgi-mock: Dynamic reference properties

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Testing OSGi Mock 2.3.8
    • Testing OSGi Mock 2.3.10
    • Testing
    • None

    Description

      PR #3 from badfish69:

      This is a pull request to add support for correct resolution of SCR references where the target filter is provided via service properties rather than being hard-coded into the metadata.

      e.g. if you have code like this

      @reference
      MyClass myClass
      

      The OSGI spec allows for the target service to be filtered via a property: myClass.target, which provides a runtime equivalent to the @reference(target=filter) static way of doing it.

      Attachments

        Activity

          People

            sseifert Stefan Seifert
            sseifert Stefan Seifert
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: