Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Testing OSGi Mock 1.9.0, Testing OSGi Mock 2.2.0
Description
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.