summaryrefslogtreecommitdiffstats
path: root/java/sca/modules/implementation-node-runtime/src/main
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2008-09-06 06:08:56 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2008-09-06 06:08:56 +0000
commitc5f7e037e1f5d3148493d6b7178d63a2c8407a52 (patch)
tree03d22de52ec832b209541c9fcb9cd3a9965ad6cc /java/sca/modules/implementation-node-runtime/src/main
parent9eadabfbf44beef2a1825f6a9c877449c374f420 (diff)
Port from SCADomain to SCANode
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@692615 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/implementation-node-runtime/src/main')
-rw-r--r--java/sca/modules/implementation-node-runtime/src/main/java/org/apache/tuscany/sca/implementation/node/launcher/NodeImplementationDaemonBootstrap.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/java/sca/modules/implementation-node-runtime/src/main/java/org/apache/tuscany/sca/implementation/node/launcher/NodeImplementationDaemonBootstrap.java b/java/sca/modules/implementation-node-runtime/src/main/java/org/apache/tuscany/sca/implementation/node/launcher/NodeImplementationDaemonBootstrap.java
index 7d5954b3fd..8de2a3a3f9 100644
--- a/java/sca/modules/implementation-node-runtime/src/main/java/org/apache/tuscany/sca/implementation/node/launcher/NodeImplementationDaemonBootstrap.java
+++ b/java/sca/modules/implementation-node-runtime/src/main/java/org/apache/tuscany/sca/implementation/node/launcher/NodeImplementationDaemonBootstrap.java
@@ -19,8 +19,8 @@
package org.apache.tuscany.sca.implementation.node.launcher;
-import org.apache.tuscany.sca.host.embedded.SCADomain;
import org.apache.tuscany.sca.node.SCANode;
+import org.apache.tuscany.sca.node.SCANodeFactory;
/**
* Bootstrap class for the SCA node daemon.
@@ -36,7 +36,7 @@ public class NodeImplementationDaemonBootstrap {
public static class NodeFacade implements SCANode {
private ClassLoader threadContextClassLoader;
private ClassLoader runtimeClassLoader;
- private SCADomain daemon;
+ private SCANode daemon;
private NodeFacade() {
runtimeClassLoader = Thread.currentThread().getContextClassLoader();
@@ -47,7 +47,8 @@ public class NodeImplementationDaemonBootstrap {
boolean started = false;
try {
Thread.currentThread().setContextClassLoader(runtimeClassLoader);
- daemon = SCADomain.newInstance("NodeDaemon.composite");
+ SCANodeFactory factory = SCANodeFactory.newInstance();
+ daemon = factory.createSCANodeFromClassLoader("NodeDaemon.composite", threadContextClassLoader);
started = true;
} finally {
if (!started) {
@@ -59,7 +60,7 @@ public class NodeImplementationDaemonBootstrap {
public void stop() {
try {
Thread.currentThread().setContextClassLoader(runtimeClassLoader);
- daemon.close();
+ daemon.stop();
} finally {
Thread.currentThread().setContextClassLoader(threadContextClassLoader);
}