Commit 76a64361 authored by Lionel Seinturier's avatar Lionel Seinturier

Minor additional framework behavior when unsetting collection references (requested by Gwen).

parent 87789aae
......@@ -350,6 +350,17 @@ implements Controller, SCAExtendedContentController {
}
srs.remove(toBeRemoved);
/*
* Re-inject the reference of the list even if this is not
* needed. This follows a discussion with Philippe on 7 March
* 2013 that needs a way to be notified that something has
* changed. Reinjecting has the side-effect of invoking the
* setter (in the case the injection point corresponds to a
* setter/getter), and enables to be notified that something has
* changed in the list of references.
*/
set(ip,content,srs);
}
else if( Map.class.isAssignableFrom(iptype) ) {
......@@ -358,6 +369,9 @@ implements Controller, SCAExtendedContentController {
Map<String,ServiceReference<?>> srs =
(Map<String,ServiceReference<?>>) get(ip,content);
srs.remove(name);
// Same comment as for SCA style collection references
set(ip,content,srs);
}
else {
// Singleton reference
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment