Don’t register shutdown hooks for all Services.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 21 Oct 2010 05:25:54 +0000 (07:25 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 21 Oct 2010 05:25:54 +0000 (07:25 +0200)
src/main/java/net/pterodactylus/sone/core/Core.java
src/main/java/net/pterodactylus/sone/core/SoneDownloader.java
src/main/java/net/pterodactylus/sone/core/SoneInserter.java
src/main/java/net/pterodactylus/sone/web/WebInterface.java

index 5493698..fbbb166 100644 (file)
@@ -108,7 +108,7 @@ public class Core extends AbstractService {
         * Creates a new core.
         */
        public Core() {
-               super("Sone Core");
+               super("Sone Core", false);
        }
 
        //
index b7663e5..9b48d7d 100644 (file)
@@ -69,7 +69,7 @@ public class SoneDownloader extends AbstractService {
         *            The Freenet interface
         */
        public SoneDownloader(Core core, FreenetInterface freenetInterface) {
-               super("Sone Downloader");
+               super("Sone Downloader", false);
                this.core = core;
                this.freenetInterface = freenetInterface;
        }
index e8c828c..2574b74 100644 (file)
@@ -88,7 +88,7 @@ public class SoneInserter extends AbstractService {
         *            The Sone to insert
         */
        public SoneInserter(Core core, FreenetInterface freenetInterface, Sone sone) {
-               super("Sone Inserter for “" + sone.getName() + "”");
+               super("Sone Inserter for “" + sone.getName() + "”", false);
                this.core = core;
                this.freenetInterface = freenetInterface;
                this.sone = sone;
index e78cdbb..f975f00 100644 (file)
@@ -76,7 +76,7 @@ public class WebInterface extends AbstractService {
         *            The Sone plugin
         */
        public WebInterface(SonePlugin sonePlugin) {
-               super("Sone Web Interface");
+               super("Sone Web Interface", false);
                this.sonePlugin = sonePlugin;
        }