diff options
author | bdaniel <bdaniel@13f79535-47bb-0310-9956-ffa450edef68> | 2010-07-26 04:24:49 +0000 |
---|---|---|
committer | bdaniel <bdaniel@13f79535-47bb-0310-9956-ffa450edef68> | 2010-07-26 04:24:49 +0000 |
commit | e7192ae85a6e78e5bd7df4ad321cda61bf5ac640 (patch) | |
tree | 02530f635ec229fc971b1b9dc6e5da5235c5dd0c /sca-java-2.x/trunk/modules/core/src/main | |
parent | 65c28a20f12ba4051353ae40558164cd75701026 (diff) |
Check constrained types for the qualifiable parent of a qualified intent
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@979150 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/core/src/main')
-rw-r--r-- | sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/runtime/impl/EndpointReferenceBinderImpl.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/runtime/impl/EndpointReferenceBinderImpl.java b/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/runtime/impl/EndpointReferenceBinderImpl.java index 2b59e892be..9bcdfa03ac 100644 --- a/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/runtime/impl/EndpointReferenceBinderImpl.java +++ b/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/runtime/impl/EndpointReferenceBinderImpl.java @@ -719,7 +719,11 @@ public class EndpointReferenceBinderImpl implements EndpointReferenceBinder { if(bindingType != null){ List<Intent> copy = new ArrayList<Intent>(intents); for (Intent i : copy) { - if (i.getConstrainedTypes().size() > 0){ + List<ExtensionType> constrainedTypes = i.getConstrainedTypes(); + if (( constrainedTypes.size() == 0 ) && ( i.getQualifiableIntent() != null ) ) + constrainedTypes = i.getQualifiableIntent().getConstrainedTypes(); + + if (constrainedTypes.size() > 0){ boolean constraintFound = false; for (ExtensionType constrainedType : i.getConstrainedTypes()){ if (constrainedType.getType().equals(bindingType.getType()) || |