[
https://issues.apache.org/jira/browse/SLING-6372?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stefan Seifert resolved SLING-6372.
-----------------------------------
Resolution: Fixed
Completed: At revision: 1773806 (2.x)
thanks - i've foward-ported it to trunk - osgi-mock 2.x.
please give us a ping if you need a release of it soon.
> OSGi Mocks - Correctly handle static, greedy references
> -------------------------------------------------------
>
> Key: SLING-6372
> URL: https://issues.apache.org/jira/browse/SLING-6372
> Project: Sling
> Issue Type: Improvement
> Components: Testing
> Affects Versions: Testing OSGi Mock 1.9.0, Testing OSGi Mock 2.2.0
> Reporter: Francesco Mari
> Assignee: Stefan Seifert
> Labels: mocks
> Fix For: Testing OSGi Mock 1.9.2, Testing OSGi Mock 2.2.2
>
>
> If a component A has a static, greedy reference to another component/service
> B (independently from the cardinality), A should react when new, better
> instances of B are registered.
> Example. A has an optional, static, greedy reference to B. A is first
> registered and - being the reference optional - is correctly activated. Then,
> an instance of B is registered. A should be deactivated, its bind method for
> B should be called, and A should be activated again.
> This behaviour is currently only supported for dynamic references, but I
> think it should be extended to static (and greedy) references too.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)