org.compass.core.util.backport.java.util.concurrent
Class Executors.PrivilegedThreadFactory
java.lang.Object
org.compass.core.util.backport.java.util.concurrent.Executors.DefaultThreadFactory
org.compass.core.util.backport.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Executors.PrivilegedThreadFactory
Executors.PrivilegedThreadFactory()
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
Copyright (c) 2004-2006 The Compass Project.