Call loadConfig() on start().
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 23 May 2009 13:45:16 +0000 (15:45 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 23 May 2009 13:45:16 +0000 (15:45 +0200)
src/net/pterodactylus/jsite/core/CoreImpl.java

index 2b795ed..c61aa74 100644 (file)
@@ -144,6 +144,7 @@ public class CoreImpl implements Core, NodeListener {
         */
        public void start() {
                logger.log(Level.INFO, "starting core…");
+               loadConfig();
                try {
                        nodeManager.load();
                        coreListenerSupport.fireLoadingNodesDone(nodeManager.getDirectory());
@@ -253,7 +254,6 @@ public class CoreImpl implements Core, NodeListener {
        /**
         * Loads the configuration.
         */
-       @SuppressWarnings("unused")
        private void loadConfig() {
                logger.log(Level.FINEST, "loadConfig()");
                /* TODO */