Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.tcf.core')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.core/META-INF/MANIFEST.MF1
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.core/src/org/eclipse/tcf/te/tcf/core/activator/CoreBundleActivator.java11
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.core/src/org/eclipse/tcf/te/tcf/core/osgi/ValueAddService.java50
3 files changed, 0 insertions, 62 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.core/META-INF/MANIFEST.MF b/target_explorer/plugins/org.eclipse.tcf.te.tcf.core/META-INF/MANIFEST.MF
index 6baece561..6a85d5573 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.core/META-INF/MANIFEST.MF
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.core/META-INF/MANIFEST.MF
@@ -27,7 +27,6 @@ Export-Package: org.eclipse.tcf.te.tcf.core,
org.eclipse.tcf.te.tcf.core.listeners,
org.eclipse.tcf.te.tcf.core.listeners.interfaces,
org.eclipse.tcf.te.tcf.core.nls;x-internal:=true,
- org.eclipse.tcf.te.tcf.core.osgi,
org.eclipse.tcf.te.tcf.core.streams,
org.eclipse.tcf.te.tcf.core.util,
org.eclipse.tcf.te.tcf.core.util.persistence,
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.core/src/org/eclipse/tcf/te/tcf/core/activator/CoreBundleActivator.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.core/src/org/eclipse/tcf/te/tcf/core/activator/CoreBundleActivator.java
index a6698562a..e6ae7a890 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.core/src/org/eclipse/tcf/te/tcf/core/activator/CoreBundleActivator.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.core/src/org/eclipse/tcf/te/tcf/core/activator/CoreBundleActivator.java
@@ -9,15 +9,10 @@
*******************************************************************************/
package org.eclipse.tcf.te.tcf.core.activator;
-import java.util.Hashtable;
-
-import org.eclipse.tcf.osgi.services.IValueAddService;
import org.eclipse.tcf.te.runtime.tracing.TraceHandler;
import org.eclipse.tcf.te.tcf.core.internal.Startup;
-import org.eclipse.tcf.te.tcf.core.osgi.ValueAddService;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
-import org.osgi.framework.ServiceRegistration;
/**
@@ -28,8 +23,6 @@ public class CoreBundleActivator implements BundleActivator {
private static BundleContext context;
// The trace handler instance
private static volatile TraceHandler traceHandler;
- // The value-add OSGi service registration
- private ServiceRegistration<IValueAddService> valueAddService;
/**
* Returns the bundle context
@@ -68,9 +61,6 @@ public class CoreBundleActivator implements BundleActivator {
@Override
public void start(BundleContext bundleContext) throws Exception {
CoreBundleActivator.context = bundleContext;
-
- // Register the value-add OSGi service instance
- valueAddService = bundleContext.registerService(IValueAddService.class, ValueAddService.getInstance(), new Hashtable<String, String>());
}
/* (non-Javadoc)
@@ -82,7 +72,6 @@ public class CoreBundleActivator implements BundleActivator {
// Mark the core framework as not started anymore
Startup.setStarted(false);
traceHandler = null;
- if (valueAddService != null) { valueAddService.unregister(); valueAddService = null; }
}
}
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.core/src/org/eclipse/tcf/te/tcf/core/osgi/ValueAddService.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.core/src/org/eclipse/tcf/te/tcf/core/osgi/ValueAddService.java
deleted file mode 100644
index 0a8829f10..000000000
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.core/src/org/eclipse/tcf/te/tcf/core/osgi/ValueAddService.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2012 Wind River Systems, Inc. and others. All rights reserved.
- * This program and the accompanying materials are made available under the terms
- * of the Eclipse Public License v1.0 which accompanies this distribution, and is
- * available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Wind River Systems - initial API and implementation
- *******************************************************************************/
-package org.eclipse.tcf.te.tcf.core.osgi;
-
-import org.eclipse.tcf.osgi.services.IValueAddService;
-import org.eclipse.tcf.protocol.IPeer;
-import org.eclipse.tcf.te.tcf.core.Tcf;
-
-/**
- * TCF framework value-add OSGi service implementation.
- */
-public class ValueAddService implements IValueAddService {
-
- /*
- * Thread save singleton instance creation.
- */
- private static class LazyInstance {
- public static ValueAddService instance = new ValueAddService();
- }
-
- /**
- * Constructor.
- */
- ValueAddService() {
- super();
- }
-
- /**
- * Returns the singleton instance of the service.
- */
- public static ValueAddService getInstance() {
- return LazyInstance.instance;
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.tcf.osgi.services.IValueAddService#getRedirectionPath(org.eclipse.tcf.protocol.IPeer, org.eclipse.tcf.osgi.services.IValueAddService.DoneGetRedirectionPath)
- */
- @Override
- public void getRedirectionPath(IPeer peer, IValueAddService.DoneGetRedirectionPath done) {
- Tcf.getChannelManager().getRedirectionPath(peer, done);
- }
-
-}

Back to the top