summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/core/src/main
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-01-25 09:56:28 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-01-25 09:56:28 +0000
commit1e2d01d50cea65671114fb1c533a5bbc3f087071 (patch)
treefb84ecbbeb852e1fa83a6f20b82c63c7395277f6 /sca-java-2.x/trunk/modules/core/src/main
parent50fd49bb664941defc16963759cf87d5d8aadbd7 (diff)
Get the correct registry even when the client doesn't use the full uri
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@902756 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/DefaultDomainRegistryFactory.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/runtime/DefaultDomainRegistryFactory.java b/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/runtime/DefaultDomainRegistryFactory.java
index 7a9f7c3cb0..9ee7934b1e 100644
--- a/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/runtime/DefaultDomainRegistryFactory.java
+++ b/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/runtime/DefaultDomainRegistryFactory.java
@@ -86,6 +86,12 @@ public class DefaultDomainRegistryFactory implements DomainRegistryFactory, Life
if (endpointRegistry != null) {
return endpointRegistry;
}
+
+ // see if its a tuscany: one (TODO: need to clean all this up)
+ endpointRegistry = endpointRegistries.get("tuscany:," + domainURI);
+ if (endpointRegistry != null) {
+ return endpointRegistry;
+ }
URI uri = URI.create(endpointRegistryURI);
String scheme = uri.getScheme();