diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-05-07 07:47:59 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-05-07 07:47:59 +0000 |
commit | 2712f294005b85da048c08c1a2f27141a67c475a (patch) | |
tree | db9f3b3ccf439f1b774597fe7a8e89b553c2915e /sca-java-2.x/trunk/modules/domain-node/src/main/java/org | |
parent | 327c206949e97766f2088e559036cb1fbf231540 (diff) |
Update to use the factory to create the endpoint registry
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1100477 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/domain-node/src/main/java/org')
-rw-r--r-- | sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/TuscanyRuntime.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/TuscanyRuntime.java b/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/TuscanyRuntime.java index eb44abe18b..589920f24c 100644 --- a/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/TuscanyRuntime.java +++ b/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/TuscanyRuntime.java @@ -104,7 +104,7 @@ public class TuscanyRuntime { try { TuscanyRuntime runtime = newInstance(); String domain = domainURI == null ? "default" : domainURI.toString(); - EndpointRegistry endpointRegistry = new EndpointRegistryImpl(runtime.extensionPointRegistry, null, null); + EndpointRegistry endpointRegistry = runtime.domainRegistryFactory.getEndpointRegistry(domain, getDomainName(domain)); NodeImpl node = new NodeImpl(domain, runtime.deployer, runtime.compositeActivator, endpointRegistry, runtime.extensionPointRegistry, runtime); if (dependentContributionURLs != null) { @@ -222,7 +222,7 @@ public class TuscanyRuntime { return assemblyFactory; } - private String getDomainName(String domainURI) { + private static String getDomainName(String domainURI) { int scheme = domainURI.indexOf(':'); int qm = domainURI.indexOf('?'); if (qm == -1) { |