Author: slaws
Date: Wed Feb 10 14:22:20 2010
New Revision: 908516

URL: http://svn.apache.org/viewvc?rev=908516&view=rev
Log:
Pass the domain name in as the registry URI so that we can use the domain name 
to switch the registry implementation. Don't like this particularly but we 
don't have another mapping yet. 

Modified:
    
tuscany/sca-java-2.x/trunk/modules/sca-client-impl/src/main/java/org/apache/tuscany/sca/client/impl/SCAClientFactoryImpl.java

Modified: 
tuscany/sca-java-2.x/trunk/modules/sca-client-impl/src/main/java/org/apache/tuscany/sca/client/impl/SCAClientFactoryImpl.java
URL: 
http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/sca-client-impl/src/main/java/org/apache/tuscany/sca/client/impl/SCAClientFactoryImpl.java?rev=908516&r1=908515&r2=908516&view=diff
==============================================================================
--- 
tuscany/sca-java-2.x/trunk/modules/sca-client-impl/src/main/java/org/apache/tuscany/sca/client/impl/SCAClientFactoryImpl.java
 (original)
+++ 
tuscany/sca-java-2.x/trunk/modules/sca-client-impl/src/main/java/org/apache/tuscany/sca/client/impl/SCAClientFactoryImpl.java
 Wed Feb 10 14:22:20 2010
@@ -79,7 +79,11 @@
         this.nodeFactory.init();
         this.extensionsRegistry = nodeFactory.getExtensionPoints();
         DomainRegistryFactory domainRegistryFactory = 
ExtensibleDomainRegistryFactory.getInstance(extensionsRegistry);
-        this.endpointRegistry = 
domainRegistryFactory.getEndpointRegistry(null, getDomainURI().toString()); // 
TODO: shouldnt use null for reg uri
+        
+        String registryURI = getDomainURI().toString();
+        
+        this.endpointRegistry = 
domainRegistryFactory.getEndpointRegistry(registryURI, 
getDomainURI().toString()); // TODO: shouldnt use null for reg uri
+        
         // TODO: if there is not an existing endpoint registry for the domain 
URI the
         //       this should create an endpoint registry client for the remote 
domain (eg hazelcast native client)
         //       for now just throw an exception 
@@ -193,6 +197,6 @@
         }
     
         return interfaceContract;
-    }
+    }    
 
 }


Reply via email to