org.apache.qpid.junit.concurrency
Class DefaultThreadFactory

java.lang.Object
  extended by org.apache.qpid.junit.concurrency.DefaultThreadFactory
All Implemented Interfaces:
ThreadFactory

public class DefaultThreadFactory
extends Object
implements ThreadFactory

Implements a default thread factory.

CRC Card
Responsibilities Collaborations
Create default threads with no specialization.


Constructor Summary
DefaultThreadFactory()
           
 
Method Summary
 Thread newThread(Runnable r)
          Constructs a new Thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultThreadFactory

public DefaultThreadFactory()
Method Detail

newThread

public Thread newThread(Runnable r)
Constructs a new Thread.

Specified by:
newThread in interface ThreadFactory
Parameters:
r - A runnable to be executed by new thread instance.
Returns:
The constructed thread.


Licensed to the Apache Software Foundation