Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 054c20f99b5686782029512bd974f441f2a289af (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
/*******************************************************************************
 * Copyright (c) 2011, 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.runtime.services;

import org.eclipse.core.runtime.PlatformObject;
import org.eclipse.tcf.te.runtime.services.interfaces.IService;

/**
 * Abstract service implementation.
 */
public abstract class AbstractService extends PlatformObject implements IService {

	private String id = null;

	/**
	 * Constructor.
	 */
	public AbstractService() {
	}

	/* (non-Javadoc)
	 * @see org.eclipse.tcf.te.runtime.interfaces.services.IService#setId(java.lang.String)
	 */
	@Override
    public final void setId(String id) {
		if (this.id == null) this.id = id;
	}

	/* (non-Javadoc)
	 * @see org.eclipse.tcf.te.runtime.interfaces.services.IService#getId()
	 */
	@Override
    public final String getId() {
		return id;
	}

}

Back to the top