Commit a072b3b1 authored by Gwenael Cattez's avatar Gwenael Cattez
Browse files

Avoid default autowire of multiple references(need to perform binding on...

Avoid default autowire of multiple references(need to perform binding on multiple reference in introspection module)
parent e517d86d
......@@ -197,6 +197,12 @@ public class AutowireResolver
// Autowire composite references.
for(Reference reference : composite.getReference()) {
if(MultiplicityHelper.is0Nor1N(reference.getMultiplicity()))
{
log.info("Avoid autowire for collection reference, <sca:reference name='"+reference.getName() + "' promote='" + reference.getPromote()+"'/>");
break;
}
// TODO: Eclipse STP SCA metamodel seems to be false
// a composite reference (Reference) must support 'autowire' attribute.
// BaseReference must not have a 'target' attribute.
......
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