001    package org.springframework.richclient.exceptionhandling;
002    
003    /**
004     * Uses 1.5 API.
005     * @author Geoffrey De Smet
006     * @since 0.3
007     */
008    public abstract class AbstractRegisterableExceptionHandler implements Thread.UncaughtExceptionHandler,
009            RegisterableExceptionHandler {
010    
011        /**
012         * Registers the exception handler for all threads and the event thread specifically.
013         */
014        public void registerExceptionHandler() {
015            Thread.setDefaultUncaughtExceptionHandler(this);
016            AwtExceptionHandlerAdapterHack.registerExceptionHandler(this);
017        }
018    
019    }