X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fmain%2FTickerShutdown.kt;h=5f960504b7145306b53fec54e83ac9fdf9fe5725;hp=71764ec4621925fae420f02ce17aee226401ea41;hb=47562abd9b9be05511954ebad829bb268057fd03;hpb=cbc92cfc389b22654d1e606d4dc757105aa1d4d4 diff --git a/src/main/kotlin/net/pterodactylus/sone/main/TickerShutdown.kt b/src/main/kotlin/net/pterodactylus/sone/main/TickerShutdown.kt index 71764ec..5f96050 100644 --- a/src/main/kotlin/net/pterodactylus/sone/main/TickerShutdown.kt +++ b/src/main/kotlin/net/pterodactylus/sone/main/TickerShutdown.kt @@ -20,12 +20,13 @@ package net.pterodactylus.sone.main import com.google.common.eventbus.* import net.pterodactylus.sone.core.event.* import java.util.concurrent.* +import javax.inject.* /** * Wrapper around all [tickers][ScheduledExecutorService] used in Sone, * ensuring proper shutdown. */ -class TickerShutdown(private val notificationTicker: ScheduledExecutorService) { +class TickerShutdown @Inject constructor(@Named("notification") private val notificationTicker: ScheduledExecutorService) { @Subscribe fun shutdown(shutdown: Shutdown) {