📄 Update filenames in file headers
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / web / notification / SoneLockedOnStartupHandler.kt
index aa3a417..f968b39 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * Sone - SoneLockedOnStartupNotification.kt - Copyright Â© 2019 David â€˜Bombe’ Roden
+ * Sone - SoneLockedOnStartupHandler.kt - Copyright Â© 2019 David â€˜Bombe’ Roden
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -22,12 +22,13 @@ import net.pterodactylus.sone.core.event.*
 import net.pterodactylus.sone.data.*
 import net.pterodactylus.sone.notify.*
 import net.pterodactylus.util.notify.*
+import javax.inject.*
 
 /**
  * Handler for [SoneLockedOnStartup][net.pterodactylus.sone.core.event.SoneLockedOnStartup] events
  * that adds the appropriate notification to the [NotificationManager].
  */
-class SoneLockedOnStartupHandler(private val notificationManager: NotificationManager, private val notification: ListNotification<Sone>) {
+class SoneLockedOnStartupHandler @Inject constructor(private val notificationManager: NotificationManager, @Named("soneLockedOnStartup") private val notification: ListNotification<Sone>) {
 
        @Subscribe
        @Suppress("UnstableApiUsage")