Author: bdaniel
Date: Mon Jul 26 04:24:49 2010
New Revision: 979150

URL: http://svn.apache.org/viewvc?rev=979150&view=rev
Log:
Check constrained types for the qualifiable parent of a qualified intent

Modified:
    
tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/runtime/impl/EndpointReferenceBinderImpl.java

Modified: 
tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/runtime/impl/EndpointReferenceBinderImpl.java
URL: 
http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/runtime/impl/EndpointReferenceBinderImpl.java?rev=979150&r1=979149&r2=979150&view=diff
==============================================================================
--- 
tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/runtime/impl/EndpointReferenceBinderImpl.java
 (original)
+++ 
tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/runtime/impl/EndpointReferenceBinderImpl.java
 Mon Jul 26 04:24:49 2010
@@ -719,7 +719,11 @@ public class EndpointReferenceBinderImpl
         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()) ||


Reply via email to