summaryrefslogtreecommitdiffstats
path: root/java/sca/itest/references
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-08-20 11:15:59 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-08-20 11:15:59 +0000
commita89055accbb22a5c40b9e8f62ffac383c6b83479 (patch)
treeeb3731548639ce622462f4c3587a60d89b1d5d82 /java/sca/itest/references
parent61b35b18fe64fc4eef8c84d0d6b35ef5fe7d3869 (diff)
Correct the reference multiplicity validation algorithm to match what OASIS is expecting
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@806124 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/itest/references')
-rw-r--r--java/sca/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/AComponentImpl.java2
-rw-r--r--java/sca/itest/references/src/main/resources/AutoWiredReferencesTest.composite2
2 files changed, 2 insertions, 2 deletions
diff --git a/java/sca/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/AComponentImpl.java b/java/sca/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/AComponentImpl.java
index 49c3deb84d..477d9b6721 100644
--- a/java/sca/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/AComponentImpl.java
+++ b/java/sca/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/AComponentImpl.java
@@ -48,7 +48,7 @@ public class AComponentImpl implements AComponent {
private DComponent dReference2;
- @Reference(name = "dReference1")
+ @Reference(name = "dReference1", required = false)
public void setDReference(DComponent dReference) {
this.dReference1 = dReference;
}
diff --git a/java/sca/itest/references/src/main/resources/AutoWiredReferencesTest.composite b/java/sca/itest/references/src/main/resources/AutoWiredReferencesTest.composite
index 77851b81a7..3934025e64 100644
--- a/java/sca/itest/references/src/main/resources/AutoWiredReferencesTest.composite
+++ b/java/sca/itest/references/src/main/resources/AutoWiredReferencesTest.composite
@@ -23,7 +23,7 @@
<implementation.java class="org.apache.tuscany.sca.itest.references.AComponentImpl" />
<reference name="bReference" target="BComponent" />
<reference name="cReference" autowire="true" />
- <reference name="dReference1" />
+ <reference name="dReference1" multiplicity="0..1"/>
<!--
<reference name="dReference1" target="DComponent" />
-->