You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Stefan Seifert (JIRA)" <ji...@apache.org> on 2018/07/31 10:21:00 UTC

[jira] [Created] (SLING-7794) osgi-mock: Dynamic reference properties

Stefan Seifert created SLING-7794:
-------------------------------------

             Summary: osgi-mock: Dynamic reference properties
                 Key: SLING-7794
                 URL: https://issues.apache.org/jira/browse/SLING-7794
             Project: Sling
          Issue Type: Improvement
          Components: Testing
    Affects Versions: Testing OSGi Mock 2.3.8
            Reporter: Stefan Seifert
            Assignee: Stefan Seifert
             Fix For: Testing OSGi Mock 2.3.10


[PR #3|https://github.com/apache/sling-org-apache-sling-testing-osgi-mock/pull/3] from [badfish69|https://github.com/badfish69]:
{quote}
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
{code:java}
@reference
MyClass myClass
{code}

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.
{quote}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)