Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.sonatype.sisu.jetty.thread;
 
Simple thread factory implementation that puts Jetty pooled threads into it's own group and installs java.lang.Thread.UncaughtExceptionHandler to created threads.

Author(s):
cstamas
Since:
1.3
public class ThreadFactoryImpl
    implements ThreadFactory
    private final ThreadGroup group;
    public ThreadFactoryImpl()
    {
        thisnew ThreadGroup"Jetty8" ), new LoggingUncaughtExceptionHandler() );
    }
    public ThreadFactoryImplfinal ThreadGroup groupfinal UncaughtExceptionHandler uncaughtExceptionHandler )
    {
        this. = group;
        this. = uncaughtExceptionHandler;
    }
    public Thread newThreadfinal Runnable runnable )
    {
        final Thread t = new Threadrunnable );
        return t;
    }
New to GrepCode? Check out our FAQ X