aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/MainModule.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-03-09 16:16:00 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-03-09 16:16:00 -0800
commit2a584c67a1663897d98e7c64fe161c88b30ef314 (patch)
tree008920bb182dc6ff622c88342b6fa9ca2a998335 /src/org/traccar/MainModule.java
parentaddbd4b58d959a7996af7631dd3449ac779b027f (diff)
downloadtrackermap-server-2a584c67a1663897d98e7c64fe161c88b30ef314.tar.gz
trackermap-server-2a584c67a1663897d98e7c64fe161c88b30ef314.tar.bz2
trackermap-server-2a584c67a1663897d98e7c64fe161c88b30ef314.zip
Refactor alert event handler
Diffstat (limited to 'src/org/traccar/MainModule.java')
-rw-r--r--src/org/traccar/MainModule.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/org/traccar/MainModule.java b/src/org/traccar/MainModule.java
index fd49fe3b5..3f196972f 100644
--- a/src/org/traccar/MainModule.java
+++ b/src/org/traccar/MainModule.java
@@ -57,6 +57,7 @@ import org.traccar.handler.GeolocationHandler;
import org.traccar.handler.HemisphereHandler;
import org.traccar.handler.MotionHandler;
import org.traccar.handler.RemoteAddressHandler;
+import org.traccar.handler.events.AlertEventHandler;
import org.traccar.handler.events.CommandResultEventHandler;
import org.traccar.handler.events.FuelDropEventHandler;
import org.traccar.handler.events.GeofenceEventHandler;
@@ -320,6 +321,12 @@ public class MainModule extends AbstractModule {
return new GeofenceEventHandler(identityManager, geofenceManager, calendarManager);
}
+ @Singleton
+ @Provides
+ public static AlertEventHandler provideAlertEventHandler(Config config, IdentityManager identityManager) {
+ return new AlertEventHandler(config, identityManager);
+ }
+
@Override
protected void configure() {
binder().requireExplicitBindings();