org.schmant.run
Class TaskExecutorThreadFactory

java.lang.Object
  extended by org.schmant.run.TaskExecutorThreadFactory
All Implemented Interfaces:
ThreadFactory

public class TaskExecutorThreadFactory
extends Object
implements ThreadFactory

Default thread factory for the TaskExecutor. It creates ReportingThread:s.

Since:
0.5
Author:
Karl Gustafsson.

Constructor Summary
TaskExecutorThreadFactory()
           
 
Method Summary
 Thread newThread(Runnable r)
           
static void registerThreadContextInitializer(ThreadContextInitializer tci)
          Register a thread context initializer that is used to set the right context on newly created threads.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskExecutorThreadFactory

public TaskExecutorThreadFactory()
Method Detail

newThread

public Thread newThread(Runnable r)
Specified by:
newThread in interface ThreadFactory

registerThreadContextInitializer

public static void registerThreadContextInitializer(ThreadContextInitializer tci)
Register a thread context initializer that is used to set the right context on newly created threads.

Parameters:
tci - A thread context initializer.
Since:
1.1