summaryrefslogtreecommitdiffstats
path: root/java/sca/modules/node-launcher-osgi
diff options
context:
space:
mode:
Diffstat (limited to 'java/sca/modules/node-launcher-osgi')
-rw-r--r--java/sca/modules/node-launcher-osgi/src/main/java/org/apache/tuscany/sca/node/osgi/launcher/NodeLauncherUtil.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/java/sca/modules/node-launcher-osgi/src/main/java/org/apache/tuscany/sca/node/osgi/launcher/NodeLauncherUtil.java b/java/sca/modules/node-launcher-osgi/src/main/java/org/apache/tuscany/sca/node/osgi/launcher/NodeLauncherUtil.java
index 4a13c0a589..adba1e2da7 100644
--- a/java/sca/modules/node-launcher-osgi/src/main/java/org/apache/tuscany/sca/node/osgi/launcher/NodeLauncherUtil.java
+++ b/java/sca/modules/node-launcher-osgi/src/main/java/org/apache/tuscany/sca/node/osgi/launcher/NodeLauncherUtil.java
@@ -182,5 +182,17 @@ final class NodeLauncherUtil {
static void stopOSGi(OSGiHost host) {
host.stop();
}
+
+ /*
+ static OSGiHost getOSGiHost() throws Exception {
+ ServiceDiscovery discovery = ServiceDiscovery.getInstance(Thread.currentThread().getContextClassLoader());
+ Class<?> hostClass = discovery.loadFirstServiceClass(OSGiHost.class);
+ if (hostClass != null) {
+ return (OSGiHost) hostClass.newInstance();
+ } else {
+ return null;
+ }
+ }
+ */
}