blob: 624c0fdd34119f39e13526ba073127b03e3938a8 (
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 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.tm.te.runtime.services;
import org.eclipse.core.runtime.PlatformObject;
import org.eclipse.tm.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.tm.te.runtime.interfaces.services.IService#setId(java.lang.String)
*/
@Override
public final void setId(String id) {
if (id == null) this.id = id;
}
/* (non-Javadoc)
* @see org.eclipse.tm.te.runtime.interfaces.services.IService#getId()
*/
@Override
public final String getId() {
return id;
}
}
|