Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
frascati
frascati
Commits
f9542b9d
Commit
f9542b9d
authored
Mar 07, 2013
by
Lionel Seinturier
Browse files
Minor additional framework behavior when setting collection references (requested by Philippe).
parent
08829962
Changes
2
Hide whitespace changes
Inline
Side-by-side
tinfi/RELEASE_NOTES.txt
View file @
f9542b9d
Tinfi 1.4.6
-----------
* minor additional framework behavior when setting collection references
(requested by Philippe)
Tinfi 1.4.5
-----------
* new in the COMP mode
...
...
tinfi/mixins/src/main/java/org/ow2/frascati/tinfi/control/content/SCAContentControllerMixin.java
View file @
f9542b9d
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment