Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 0a8829f10aba5cf806c6aec06de085505f5115cb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*******************************************************************************
 * 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