diff options
author | Anton Tananaev <anton@traccar.org> | 2022-11-13 10:12:32 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-11-13 10:12:32 -0800 |
commit | ff793b2e2872f8ba076e748fab41d944f92b64d4 (patch) | |
tree | 3ccf568ebe9d84dabd7e1b840444caa1cc89cb78 /src/main/java/org/traccar/MainModule.java | |
parent | 4ec9db613475066de3f46c24d4ee78fefcbb17df (diff) | |
download | trackermap-server-ff793b2e2872f8ba076e748fab41d944f92b64d4.tar.gz trackermap-server-ff793b2e2872f8ba076e748fab41d944f92b64d4.tar.bz2 trackermap-server-ff793b2e2872f8ba076e748fab41d944f92b64d4.zip |
Refactor event forwarding
Diffstat (limited to 'src/main/java/org/traccar/MainModule.java')
-rw-r--r-- | src/main/java/org/traccar/MainModule.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/org/traccar/MainModule.java b/src/main/java/org/traccar/MainModule.java index c4cda578e..9a5cca4c7 100644 --- a/src/main/java/org/traccar/MainModule.java +++ b/src/main/java/org/traccar/MainModule.java @@ -35,6 +35,8 @@ import org.traccar.config.Config; import org.traccar.config.Keys; import org.traccar.database.LdapProvider; import org.traccar.database.StatisticsManager; +import org.traccar.forward.EventForwarder; +import org.traccar.forward.EventForwarderJson; import org.traccar.geocoder.AddressFormat; import org.traccar.geocoder.BanGeocoder; import org.traccar.geocoder.BingMapsGeocoder; @@ -67,7 +69,6 @@ import org.traccar.helper.SanitizerModule; import org.traccar.mail.LogMailManager; import org.traccar.mail.MailManager; import org.traccar.mail.SmtpMailManager; -import org.traccar.notification.EventForwarder; import org.traccar.session.cache.CacheManager; import org.traccar.sms.HttpSmsClient; import org.traccar.sms.SmsManager; @@ -310,9 +311,9 @@ public class MainModule extends AbstractModule { @Singleton @Provides - public static EventForwarder provideEventForwarder(Config config, Client client, CacheManager cacheManager) { + public static EventForwarder provideEventForwarder(Config config, Client client) { if (config.hasKey(Keys.EVENT_FORWARD_URL)) { - return new EventForwarder(config, client, cacheManager); + return new EventForwarderJson(config, client); } return null; } |