org.schmant.run
Interface ThreadContextInitializer
- All Known Implementing Classes:
- MozillaRhinoExecutor, SunJavaScriptExecutor
public interface ThreadContextInitializer
This interface identifies an object that initializes the context for a thread
created by the TaskExecutorThreadFactory
. It is used by different
script language support classes to make sure that new threads have the right
context set when they are created.
- Since:
- 1.1
- Author:
- Karl Gustafsson
- See Also:
TaskExecutorThreadFactory
proxyRunnable
Runnable proxyRunnable(Runnable r)
- Proxy the
Runnable
that the thread is configured to run with a
runnable that sets up the thread context.
- Parameters:
r
- The runnable that the thread is configured to run.
- Returns:
- A runnable that proxies the supplied runnable in order to set up
the thread context before that runnable is run.