de.intarsys.tools.monitor.Trace Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of isrt Show documentation
Show all versions of isrt Show documentation
The basic runtime tools and interfaces for intarsys components.
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