All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.intarsys.tools.monitor.Trace Maven / Gradle / Ivy

There is a newer version: 4.11
Show newest version
package de.intarsys.tools.monitor;

/**
 * Tool class to access all currently active {@link ITrace} instances.
 */
public class Trace {

	private static ThreadLocal trace = new ThreadLocal() {
		@Override
		protected MultiTrace initialValue() {
			return new MultiTrace();
		};
	};

	static public ITrace get() {
		return trace.get();
	}

	static public void registerTrace(ITrace pTrace) {
		trace.get().registerTrace(pTrace);
	}

	static public void unregisterTrace(ITrace pTrace) {
		trace.get().unregisterTrace(pTrace);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy