I am looking for a class similar to ThreadLocal which would work on thread groups instead of threads.
If there is not such a class (in some open source library) how would you implement it? Some better idea than having thread groups in WeakHashMap?
I am implementing a debugging framework tunable in run-time with various parameters in global, per-thread and per-thread group contexts. As a very simple example, you can have a reporting statement:
debug.log( category, message);
and specify that the log entry with that specific category will be displayed only when called by a thread in group of threads servicing network requests.