tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r1100477 - /tuscany/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/TuscanyRuntime.java
Date Sat, 07 May 2011 07:48:00 GMT
Author: antelder
Date: Sat May  7 07:47:59 2011
New Revision: 1100477

URL: http://svn.apache.org/viewvc?rev=1100477&view=rev
Log:
Update to use the factory to create the endpoint registry

Modified:
    tuscany/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/TuscanyRuntime.java

Modified: tuscany/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/TuscanyRuntime.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/TuscanyRuntime.java?rev=1100477&r1=1100476&r2=1100477&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/TuscanyRuntime.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/TuscanyRuntime.java
Sat May  7 07:47:59 2011
@@ -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) {



Mime
View raw message