Add web interface as core listener.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 14 Nov 2010 16:11:01 +0000 (17:11 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 14 Nov 2010 16:11:01 +0000 (17:11 +0100)
src/main/java/net/pterodactylus/sone/main/SonePlugin.java

index ed676a0..3ca3add 100644 (file)
@@ -169,12 +169,13 @@ public class SonePlugin implements FredPlugin, FredPluginL10n, FredPluginBaseL10
                identityManager = new IdentityManager(webOfTrustConnector);
                identityManager.setContext("Sone");
 
-               /* create the web interface. */
-               webInterface = new WebInterface(this);
-
                /* create core. */
                core = new Core(configuration, freenetInterface, identityManager);
 
+               /* create the web interface. */
+               webInterface = new WebInterface(this);
+               core.addCoreListener(webInterface);
+
                /* create the identity manager. */
                identityManager.addIdentityListener(core);