tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r1102715 - /tuscany/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/TuscanyRuntime.java
Date Fri, 13 May 2011 13:30:43 GMT
Author: antelder
Date: Fri May 13 13:30:42 2011
New Revision: 1102715

URL: http://svn.apache.org/viewvc?rev=1102715&view=rev
Log:
Add a temporary create for the node2

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=1102715&r1=1102714&r2=1102715&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
Fri May 13 13:30:42 2011
@@ -38,6 +38,7 @@ import org.apache.tuscany.sca.core.Utili
 import org.apache.tuscany.sca.core.assembly.RuntimeAssemblyFactory;
 import org.apache.tuscany.sca.deployment.Deployer;
 import org.apache.tuscany.sca.impl.NodeImpl;
+import org.apache.tuscany.sca.impl.NodeImpl2;
 import org.apache.tuscany.sca.monitor.ValidationException;
 import org.apache.tuscany.sca.node.configuration.ContributionConfiguration;
 import org.apache.tuscany.sca.node.configuration.NodeConfiguration;
@@ -149,6 +150,15 @@ public class TuscanyRuntime {
         return new NodeImpl(domainName, deployer, compositeActivator, endpointRegistry, extensionPointRegistry,
null);
     }
 
+    public NodeImpl2 createNode2(String domainURI) {
+        String domainName = "default";
+        if (domainURI != null){
+            domainName = getDomainName(domainURI);
+        }
+        EndpointRegistry endpointRegistry = domainRegistryFactory.getEndpointRegistry(domainURI,
domainName);
+        return new NodeImpl2(domainName, deployer, compositeActivator, endpointRegistry,
extensionPointRegistry, null);
+    }
+    
     /**
      * Creates a Node from an XML configuration file
      * @param configURL  the URL to the XML configuration file



Mime
View raw message