net.sourceforge.rssowl.controller.thread
Class ShutdownHook
java.lang.Object
java.lang.Thread
net.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
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 |
gui
private GUI gui
ShutdownHook
public ShutdownHook(GUI gui)
- Instantiate a new ShutdownHook which will be added to the Runtime with
calling addShutdownHook().
- Parameters:
gui
- The Main Controller
run
public void run()
- Call the shutDown() Method of the Maincontroller in the Main Thread
- See Also:
Thread.run()
RSSOwl - RSS / RDF / Atom Newsreader