X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fnotification%2FConfigNotReadHandler.kt;fp=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fnotification%2FConfigNotReadHandler.kt;h=46961c0aa7a387a9d1504af638ad5bdc71e0f03d;hp=e2a1adab6b7fe85ea60e689d08af61760b2c1d77;hb=b31f0234988a509ca831785c87433ab264374d0a;hpb=e6aa326d36fc1d653ed5473fd02af8cba8992b9a 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..46961c0 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/notification/ConfigNotReadHandler.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/notification/ConfigNotReadHandler.kt @@ -20,11 +20,12 @@ 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) {