summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-06-28 15:19:08 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-06-28 15:19:08 +0000
commit4742dbf43dc497b707a6995198a70124c646f6c4 (patch)
tree6408897af1cc26d700dbc6f46f9a1ce949826b36 /sca-java-2.x/trunk/modules
parentd92638d6a90f999470d2dfc0c117e9c04c80ec68 (diff)
When the domainURI is null use a default
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1140683 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules')
-rw-r--r--sca-java-2.x/trunk/modules/sca-client-impl/src/main/java/org/apache/tuscany/sca/client/impl/SCAClientFactoryImpl.java4
1 files changed, 3 insertions, 1 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 e5d655c3ee..ce148438eb 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
@@ -41,12 +41,14 @@ public class SCAClientFactoryImpl extends SCAClientFactory {
private DomainRegistry domainRegistry;
private boolean remoteClient;
+ public static URI default_domainURI = URI.create("default");
+
public static void setSCAClientFactoryFinder(SCAClientFactoryFinder factoryFinder) {
SCAClientFactory.factoryFinder = factoryFinder;
}
public SCAClientFactoryImpl(URI domainURI) throws NoSuchDomainException {
- super(domainURI);
+ super(domainURI == null ? default_domainURI : domainURI);
findLocalRuntime();
}