From f9bc38e54b9673d98e8536db16c70e88d76f95b4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sun, 14 Nov 2010 17:11:01 +0100 Subject: [PATCH] Add web interface as core listener. --- src/main/java/net/pterodactylus/sone/main/SonePlugin.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/net/pterodactylus/sone/main/SonePlugin.java b/src/main/java/net/pterodactylus/sone/main/SonePlugin.java index ed676a0..3ca3add 100644 --- a/src/main/java/net/pterodactylus/sone/main/SonePlugin.java +++ b/src/main/java/net/pterodactylus/sone/main/SonePlugin.java @@ -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); -- 2.7.4