diff options
Diffstat (limited to 'sca-java-2.x/trunk/modules/domain-node/src')
-rw-r--r-- | sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/TuscanyRuntime.java | 10 |
1 files changed, 10 insertions, 0 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 c083fad447..af0dc0df10 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 @@ -38,6 +38,7 @@ import org.apache.tuscany.sca.core.UtilityExtensionPoint; 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 |