UncaughtExceptionTool.java
package org.ferris.resiste.console.exception;
import java.lang.Thread.UncaughtExceptionHandler;
import javax.enterprise.context.ApplicationScoped;
/**
* This class exists only for unit testing that the static method
* Thread.setDefaultUncaughtExceptionHandler() is called.
*
* @author Michael Remijan mjremijan@yahoo.com @mjremijan
*/
@ApplicationScoped
public class UncaughtExceptionTool {
public void setDefaultUncaughtExceptionHandler(UncaughtExceptionHandler handler) {
Thread.setDefaultUncaughtExceptionHandler(handler);
}
}