X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fnotification%2FConfigNotReadHandler.kt;h=4ad525bc2df9ce67a742877bf05750a39b1e2c59;hb=4af887c75667793c197b564f16b7e95b1f63cbc7;hp=e2a1adab6b7fe85ea60e689d08af61760b2c1d77;hpb=e6aa326d36fc1d653ed5473fd02af8cba8992b9a;p=Sone.git diff --git a/src/main/kotlin/net/pterodactylus/sone/web/notification/ConfigNotReadHandler.kt b/src/main/kotlin/net/pterodactylus/sone/web/notification/ConfigNotReadHandler.kt index e2a1ada..4ad525b 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/notification/ConfigNotReadHandler.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/notification/ConfigNotReadHandler.kt @@ -20,14 +20,15 @@ package net.pterodactylus.sone.web.notification import com.google.common.eventbus.* import net.pterodactylus.sone.core.event.* import net.pterodactylus.util.notify.* +import javax.inject.* /** * Handler for [ConfigNotRead] events. */ -class ConfigNotReadHandler(private val notificationManager: NotificationManager, private val notification: TemplateNotification) { +class ConfigNotReadHandler @Inject constructor(private val notificationManager: NotificationManager, @Named("configNotRead") private val notification: TemplateNotification) { @Subscribe - fun configNotRead(configNotRead: ConfigNotRead) { + fun configNotRead(@Suppress("UNUSED_PARAMETER") configNotRead: ConfigNotRead) { notificationManager.addNotification(notification) }