projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add web interface as core listener.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
main
/
SonePlugin.java
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
(file)
--- 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");
identityManager = new IdentityManager(webOfTrustConnector);
identityManager.setContext("Sone");
- /* create the web interface. */
- webInterface = new WebInterface(this);
-
/* create core. */
core = new Core(configuration, freenetInterface, identityManager);
/* 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);
/* create the identity manager. */
identityManager.addIdentityListener(core);