net.sourceforge.rssowl.controller.thread
Class ShutdownHook

java.lang.Object
  extended byjava.lang.Thread
      extended bynet.sourceforge.rssowl.controller.thread.ShutdownHook
All Implemented Interfaces:
Runnable

public class ShutdownHook
extends Thread

This Thread will exit RSSOwl in a clean way in case the virtual machine is terminated in response to a user interrupt, such as typing ^C, or a system-wide event, such as user logoff or system shutdown. A clean shutdown in this case is saving data to the user directory on exit.

Version:
1.1.3
Author:
Benjamin Pasero

Field Summary
private  GUI gui
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ShutdownHook(GUI gui)
          Instantiate a new ShutdownHook which will be added to the Runtime with calling addShutdownHook().
 
Method Summary
 void run()
          Call the shutDown() Method of the Maincontroller in the Main Thread
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

gui

private GUI gui
Constructor Detail

ShutdownHook

public ShutdownHook(GUI gui)
Instantiate a new ShutdownHook which will be added to the Runtime with calling addShutdownHook().

Parameters:
gui - The Main Controller
Method Detail

run

public void run()
Call the shutDown() Method of the Maincontroller in the Main Thread

See Also:
Thread.run()


RSSOwl - RSS / RDF / Atom Newsreader

SourceForge.net Logo