X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fnotification%2FWebOfTrustHandler.kt;fp=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fnotification%2FWebOfTrustHandler.kt;h=924d3956d8cab6e3bbaa030aa33cdce85c2a6c68;hb=2ec60e8d6d2efadd7b4d35de3c3d257a0bc5f190;hp=2f644a64729b8497ff58d8900f6199df77843fdb;hpb=439fb3dfa1ccf157388a0e0b306013d0aa46bb50;p=Sone.git diff --git a/src/main/kotlin/net/pterodactylus/sone/web/notification/WebOfTrustHandler.kt b/src/main/kotlin/net/pterodactylus/sone/web/notification/WebOfTrustHandler.kt index 2f644a6..924d395 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/notification/WebOfTrustHandler.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/notification/WebOfTrustHandler.kt @@ -20,12 +20,13 @@ 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 web of trust-related notifications and the [WebOfTrustAppeared] * and [WebOfTrustDisappeared] events. */ -class WebOfTrustHandler(private val notificationManager: NotificationManager, private val notification: TemplateNotification) { +class WebOfTrustHandler @Inject constructor(private val notificationManager: NotificationManager, @Named("webOfTrust") private val notification: TemplateNotification) { @Subscribe fun webOfTrustAppeared(webOfTrustAppeared: WebOfTrustAppeared) {