Commit | Line | Data |
---|---|---|
8c8bf09f | 1 | /******************************************************************************* |
be9d96b7 | 2 | * Copyright (c) 2009 Ericsson |
8c8bf09f ASL |
3 | * |
4 | * All rights reserved. This program and the accompanying materials are | |
5 | * made available under the terms of the Eclipse Public License v1.0 which | |
6 | * accompanies this distribution, and is available at | |
7 | * http://www.eclipse.org/legal/epl-v10.html | |
8 | * | |
9 | * Contributors: | |
10 | * Francois Chouinard - Initial API and implementation | |
11 | *******************************************************************************/ | |
12 | ||
13 | package org.eclipse.linuxtools.tmf.component; | |
14 | ||
8d2e2848 | 15 | import org.eclipse.linuxtools.tmf.signal.TmfSignal; |
8c8bf09f ASL |
16 | import org.eclipse.linuxtools.tmf.signal.TmfSignalManager; |
17 | ||
18 | /** | |
19 | * <b><u>TmfComponent</u></b> | |
20 | * <p> | |
8c8bf09f ASL |
21 | */ |
22 | public abstract class TmfComponent implements ITmfComponent { | |
23 | ||
be9d96b7 FC |
24 | public TmfComponent() { |
25 | TmfSignalManager.addListener(this); | |
8c8bf09f ASL |
26 | } |
27 | ||
8c8bf09f | 28 | public void dispose() { |
be9d96b7 | 29 | TmfSignalManager.removeListener(this); |
8c8bf09f ASL |
30 | } |
31 | ||
8d2e2848 FC |
32 | public void broadcastSignal(TmfSignal signal) { |
33 | TmfSignalManager.dispatchSignal(signal); | |
34 | } | |
8c8bf09f | 35 | } |