1 /*******************************************************************************
2 * Copyright (c) 2009 Ericsson
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
10 * Francois Chouinard - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.tmf
.core
.signal
;
16 * This object (singleton) traces all TmfSignals in the application.
19 * @author Francois Chouinard
21 public class TmfSignalTracer
{
23 static TmfSignalTracer fInstance
;
26 * @return The single instance of the signal tracer object
28 static public TmfSignalTracer
getInstance() {
29 if (fInstance
== null) {
30 fInstance
= new TmfSignalTracer();
35 private TmfSignalTracer() {
39 * Handler for all TMF signal types
45 public void traceSignal(TmfSignal signal
) {
46 System
.out
.println(signal
.getSource().toString() + ": " + signal
.toString()); //$NON-NLS-1$