wt.util.xml.xslt
Class ThreadFactory

java.lang.Object
  extended bywt.util.xml.xslt.ThreadFactory

class ThreadFactory
extends Object

Static thread factory that attempts to create the most appropriate type of Thread available. Specifically, it attempts to create a wt.session.SessionThread object whenever possible, but will create a simple Thread object if this fails. It can be easily extended to support additional Thread types.


Field Summary
private static Object lock
           
private static Class threadClass
           
 
Constructor Summary
(package private) ThreadFactory()
           
 
Method Summary
private static Class getThreadClass()
           
(package private) static Thread newThread(Runnable runner)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lock

private static Object lock

threadClass

private static Class threadClass
Constructor Detail

ThreadFactory

ThreadFactory()
Method Detail

newThread

static Thread newThread(Runnable runner)

getThreadClass

private static Class getThreadClass()