projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
🚧 Add notification handler to web interface module
[Sone.git]
/
src
/
main
/
kotlin
/
net
/
pterodactylus
/
sone
/
web
/
WebInterfaceModule.kt
diff --git
a/src/main/kotlin/net/pterodactylus/sone/web/WebInterfaceModule.kt
b/src/main/kotlin/net/pterodactylus/sone/web/WebInterfaceModule.kt
index
3d87aa7
..
63f3fc6
100644
(file)
--- a/
src/main/kotlin/net/pterodactylus/sone/web/WebInterfaceModule.kt
+++ b/
src/main/kotlin/net/pterodactylus/sone/web/WebInterfaceModule.kt
@@
-1,5
+1,6
@@
package net.pterodactylus.sone.web
package net.pterodactylus.sone.web
+import com.google.common.eventbus.*
import com.google.inject.*
import freenet.support.api.*
import net.pterodactylus.sone.core.*
import com.google.inject.*
import freenet.support.api.*
import net.pterodactylus.sone.core.*
@@
-10,6
+11,7
@@
import net.pterodactylus.sone.freenet.wot.*
import net.pterodactylus.sone.main.*
import net.pterodactylus.sone.template.*
import net.pterodactylus.sone.text.*
import net.pterodactylus.sone.main.*
import net.pterodactylus.sone.template.*
import net.pterodactylus.sone.text.*
+import net.pterodactylus.sone.web.notification.*
import net.pterodactylus.util.notify.*
import net.pterodactylus.util.template.*
import javax.inject.*
import net.pterodactylus.util.notify.*
import net.pterodactylus.util.template.*
import javax.inject.*
@@
-132,4
+134,9
@@
class WebInterfaceModule : AbstractModule() {
fun getNotificationManager() =
NotificationManager()
fun getNotificationManager() =
NotificationManager()
+ @Provides
+ @Singleton
+ fun getNotificationHandler(eventBus: EventBus, loaders: Loaders, notificationManager: NotificationManager) =
+ NotificationHandler(eventBus, loaders, notificationManager)
+
}
}