Build 1.0_r1(from source)

java.util.concurrent
Class Executors.PrivilegedThreadFactory

java.lang.Object
  extended by java.util.concurrent.Executors.DefaultThreadFactory
      extended by java.util.concurrent.Executors.PrivilegedThreadFactory
All Implemented Interfaces:
ThreadFactory
Enclosing class:
Executors

static class Executors.PrivilegedThreadFactory
extends Executors.DefaultThreadFactory

Thread factory capturing access control and class loader


Field Summary
 
Fields inherited from class java.util.concurrent.Executors.DefaultThreadFactory
group, namePrefix, poolNumber, threadNumber
 
Constructor Summary
Executors.PrivilegedThreadFactory()
           
 
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

Executors.PrivilegedThreadFactory

Executors.PrivilegedThreadFactory()
Method Detail

newThread

public Thread newThread(Runnable r)
Description copied from interface: ThreadFactory
Constructs a new Thread. Implementations may also initialize priority, name, daemon status, ThreadGroup, etc.

Specified by:
newThread in interface ThreadFactory
Overrides:
newThread in class Executors.DefaultThreadFactory
Parameters:
r - a runnable to be executed by new thread instance
Returns:
constructed thread

Build 1.0_r1(from source)

Please submit a feedback, bug or feature