diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2008-09-08 03:16:34 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2008-09-08 03:16:34 +0000 |
commit | fe56d619a6e9c5a5a3ed26d61591fd4fb89b4c1f (patch) | |
tree | bc63c578f6509d4cf488da99415de6bf091e577b /java/sca/modules/node-launcher-osgi/src | |
parent | d6293beb6665b69b91241907d4e735f7d2cc0f26 (diff) |
Simplified a bit the service discovery implementation. Some code cleanup in node-launcher-equinox. Started to remove dependencies on a particular setting of the Thread Context ClassLoader.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@692989 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/node-launcher-osgi/src')
-rw-r--r-- | java/sca/modules/node-launcher-osgi/src/main/java/org/apache/tuscany/sca/node/osgi/launcher/FelixOSGiHost.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/java/sca/modules/node-launcher-osgi/src/main/java/org/apache/tuscany/sca/node/osgi/launcher/FelixOSGiHost.java b/java/sca/modules/node-launcher-osgi/src/main/java/org/apache/tuscany/sca/node/osgi/launcher/FelixOSGiHost.java index 4eeb706767..5e4a0ed338 100644 --- a/java/sca/modules/node-launcher-osgi/src/main/java/org/apache/tuscany/sca/node/osgi/launcher/FelixOSGiHost.java +++ b/java/sca/modules/node-launcher-osgi/src/main/java/org/apache/tuscany/sca/node/osgi/launcher/FelixOSGiHost.java @@ -41,7 +41,7 @@ public class FelixOSGiHost implements OSGiHost { private Felix felix; private LauncherBundleActivator activator; - private ClassLoader tccl; + //private ClassLoader tccl; private final static String systemPackages = "org.osgi.framework; version=1.3.0," + "org.osgi.service.packageadmin; version=1.2.0, " @@ -137,8 +137,8 @@ public class FelixOSGiHost implements OSGiHost { // Now start Felix instance. felix.start(); - tccl = Thread.currentThread().getContextClassLoader(); - Thread.currentThread().setContextClassLoader(getContextClassLoader(felix.getBundleContext())); + //tccl = Thread.currentThread().getContextClassLoader(); + //Thread.currentThread().setContextClassLoader(getContextClassLoader(felix.getBundleContext())); } @@ -168,7 +168,7 @@ public class FelixOSGiHost implements OSGiHost { if (felix != null) { felix.stopAndWait(); } - Thread.currentThread().setContextClassLoader(tccl); + //Thread.currentThread().setContextClassLoader(tccl); } } |