X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fnotification%2FNewVersionHandler.kt;h=95ef0efad17b9c7ca4df16e2e1747f1002caa2d7;hp=da6375e19945198c37be647c674e0675d518cecb;hb=05ebea72f846cf147a51938b15e6f0cd93773f4e;hpb=9fab21ef1d4d158a3ba2531edbba715c32ec663f diff --git a/src/main/kotlin/net/pterodactylus/sone/web/notification/NewVersionHandler.kt b/src/main/kotlin/net/pterodactylus/sone/web/notification/NewVersionHandler.kt index da6375e..95ef0ef 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/notification/NewVersionHandler.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/notification/NewVersionHandler.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 the “new version” notification. */ -class NewVersionHandler(private val notificationManager: NotificationManager, private val notification: TemplateNotification) { +class NewVersionHandler @Inject constructor(private val notificationManager: NotificationManager, @Named("newVersion") private val notification: TemplateNotification) { @Subscribe fun newVersionFound(updateFoundEvent: UpdateFoundEvent) {