Package org.jboss.weld.executor
Class DaemonThreadFactory
- java.lang.Object
-
- org.jboss.weld.executor.DaemonThreadFactory
-
- All Implemented Interfaces:
ThreadFactory
public class DaemonThreadFactory extends Object implements ThreadFactory
ThreadFactory
that creates daemon threads so that Weld does not hang e.g. in a SE environment.- Author:
- Jozef Hartinger
-
-
Field Summary
Fields Modifier and Type Field Description static String
WELD_WORKERS
-
Constructor Summary
Constructors Constructor Description DaemonThreadFactory(ThreadGroup threadGroup, String threadNamePrefix)
-
-
-
Field Detail
-
WELD_WORKERS
public static final String WELD_WORKERS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DaemonThreadFactory
public DaemonThreadFactory(ThreadGroup threadGroup, String threadNamePrefix)
-
-
Method Detail
-
newThread
public Thread newThread(Runnable r)
- Specified by:
newThread
in interfaceThreadFactory
-
-