Koen's blog Profile Photo

Koen's blog

Ik typ. Ik typ voor mijn Sien, Arwen, Mila en Nienke.

Shutdown hooks

Now, that is another nice thing to check out : shutdown hooks.

Shutdown Hooks by David Walend -- A shutdown hook is a Thread designed to be run after a program receives a signal to exit, but before daemon threads stop, finalizers run, and the JVM goes poof. Shutdown hooks are great for clearing dirty caches, closing out open resources, and announcing this shutdown to other processes.

… there must be some downsides to this hooks, no? Mmm, needs a bit more investigation I guess. ;)