aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/MainModule.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-03-09 12:19:46 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-03-09 12:19:46 -0800
commit2af6e4cc6255f59acaa17e6763063b775d7ba1ea (patch)
treed95d2aeb584eb2c8c5709ea727e881aa1c4fc8cd /src/org/traccar/MainModule.java
parent8018a9269789d532431ed455b82c3a67acdd0e50 (diff)
downloadtrackermap-server-2af6e4cc6255f59acaa17e6763063b775d7ba1ea.tar.gz
trackermap-server-2af6e4cc6255f59acaa17e6763063b775d7ba1ea.tar.bz2
trackermap-server-2af6e4cc6255f59acaa17e6763063b775d7ba1ea.zip
Refactor fuel drop manager
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 fe280d7a3..46af5670c 100644
--- a/src/org/traccar/MainModule.java
+++ b/src/org/traccar/MainModule.java
@@ -57,6 +57,7 @@ import org.traccar.handler.HemisphereHandler;
import org.traccar.handler.MotionHandler;
import org.traccar.handler.RemoteAddressHandler;
import org.traccar.handler.events.CommandResultEventHandler;
+import org.traccar.handler.events.FuelDropEventHandler;
import org.traccar.handler.events.OverspeedEventHandler;
import org.traccar.reports.model.TripsConfig;
@@ -291,6 +292,12 @@ public class MainModule extends AbstractModule {
return new OverspeedEventHandler(config, deviceManager, geofenceManager);
}
+ @Singleton
+ @Provides
+ public static FuelDropEventHandler provideFuelDropEventHandler(IdentityManager identityManager) {
+ return new FuelDropEventHandler(identityManager);
+ }
+
@Override
protected void configure() {
binder().requireExplicitBindings();