Hi,
When I investigate the issue reported by JIRA
http://issues.apache.org/jira/browse/TUSCANY-994, I find there are
inconsistencies for the references.
1) In the assembly spec, the syntax of the <reference> is:
for <componentType>:
<reference name="xs:NCName" override="sca:OverrideOptions"?
multiplicity="0..1 or 1..1 or 0..n or 1..n"?>*
<interface/>
</reference>
for <composite>:
<reference name="xs:NCName" override="sca:OverrideOptions"?
multiplicity="0..1 or 1..1 or 0..n or 1..n"?>*
<interface/>
<binding uri="xs:anyURI"?/>*
</reference>
OverrideOptions has the value of "must", "may", and "no".
2) In the java C&I spec, the syntax of the @Reference annotation is:
The @Reference annotation has the following attributes:
* name - the name of the reference, which defaults to the name of the field
of the Java class
* required - whether injection of service or services is required, which
defaults to false
Question 1: How do we annotate the reference with override="no"? I assume
"override=must" is "required=true" and "override=may" is "required=false".
Question 2: The current Tuscany ReferenceDefinition model matches the
attribute "required" of the java @Reference annotation and the
ReferenceLoader doesn't parse the "override" attribute at all. It is a bug,
right?
Question 3: It seems that SCA spec issue 44 will have some impacts on this,
is there any update?
Thanks,
Raymond
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]