Thread context is closely tied with the RequestRegistry. What it does
is glean the RequestRegistry from one thread and allow that information
to be passed to another.
Typical Usage:
//Sets the internal members
ExpressoThreadContext context = new ExpressoThreadContext();
//Sample thread
Thread myThread = new MyThread();
myThread.setThreadContext(context);
.....
Then in 'MyThread'....
void run() {
context.applySettingsToCurrentThread();
....
}
If you change the API for the RequestRegistry by adding more items
, then you need to change this class as well to allow transport of the
request registry between threads.
author: Michael Rimov |