diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2010-02-10 14:22:20 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2010-02-10 14:22:20 +0000 |
commit | 6af7afad6f5dbd2590e94a9ee862ec88e858c7c1 (patch) | |
tree | 1790b396c19e2c1a5ca17b5b45d9fa2ee71fb2b1 /sca-java-2.x/trunk | |
parent | 2c057852e11be7f06fee3ea24768d9cfefdb695b (diff) |
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.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@908516 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk')
-rw-r--r-- | sca-java-2.x/trunk/modules/sca-client-impl/src/main/java/org/apache/tuscany/sca/client/impl/SCAClientFactoryImpl.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sca-java-2.x/trunk/modules/sca-client-impl/src/main/java/org/apache/tuscany/sca/client/impl/SCAClientFactoryImpl.java b/sca-java-2.x/trunk/modules/sca-client-impl/src/main/java/org/apache/tuscany/sca/client/impl/SCAClientFactoryImpl.java index 146d1c4017..8d6986b401 100644 --- a/sca-java-2.x/trunk/modules/sca-client-impl/src/main/java/org/apache/tuscany/sca/client/impl/SCAClientFactoryImpl.java +++ b/sca-java-2.x/trunk/modules/sca-client-impl/src/main/java/org/apache/tuscany/sca/client/impl/SCAClientFactoryImpl.java @@ -79,7 +79,11 @@ public class SCAClientFactoryImpl extends SCAClientFactory { 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 @@ public class SCAClientFactoryImpl extends SCAClientFactory { } return interfaceContract; - } + } } |