Commit f9542b9d authored by Lionel Seinturier's avatar Lionel Seinturier
Browse files

Minor additional framework behavior when setting collection references (requested by Philippe).

parent 08829962
Tinfi 1.4.6
-----------
* minor additional framework behavior when setting collection references
(requested by Philippe)
Tinfi 1.4.5
-----------
* new in the COMP mode
......
......@@ -285,6 +285,17 @@ implements Controller, SCAExtendedContentController {
}
srs.add(value);
/*
* 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) ) {
......@@ -293,6 +304,9 @@ implements Controller, SCAExtendedContentController {
Map<String,ServiceReference<?>> srs =
(Map<String,ServiceReference<?>>) get(ip,content);
srs.put(name,value);
// Same comment as for SCA style collection references
set(ip,content,srs);
}
else {
// Singleton reference
......
Supports Markdown
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