diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-08-10 20:44:12 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-08-10 20:44:12 -0700 |
commit | a7288edd54744fca8c62468ad41b6194ab104c6f (patch) | |
tree | 27407f95b6dff8bdac9126e5bfd2e407d421a077 /src/main/java/org/traccar/MainModule.java | |
parent | 51c6b0fe2ce11af9ce5f758dd81ffec3e59ad83b (diff) | |
download | trackermap-server-a7288edd54744fca8c62468ad41b6194ab104c6f.tar.gz trackermap-server-a7288edd54744fca8c62468ad41b6194ab104c6f.tar.bz2 trackermap-server-a7288edd54744fca8c62468ad41b6194ab104c6f.zip |
Add driver behavior events
Diffstat (limited to 'src/main/java/org/traccar/MainModule.java')
-rw-r--r-- | src/main/java/org/traccar/MainModule.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/MainModule.java b/src/main/java/org/traccar/MainModule.java index 350af6bd7..e1a4d6b1c 100644 --- a/src/main/java/org/traccar/MainModule.java +++ b/src/main/java/org/traccar/MainModule.java @@ -65,6 +65,7 @@ import org.traccar.handler.RemoteAddressHandler; import org.traccar.handler.SpeedLimitHandler; import org.traccar.handler.TimeHandler; import org.traccar.handler.events.AlertEventHandler; +import org.traccar.handler.events.BehaviorEventHandler; import org.traccar.handler.events.CommandResultEventHandler; import org.traccar.handler.events.DriverEventHandler; import org.traccar.handler.events.FuelDropEventHandler; @@ -369,6 +370,12 @@ public class MainModule extends AbstractModule { @Singleton @Provides + public static BehaviorEventHandler provideBehaviorEventHandler(Config config, IdentityManager identityManager) { + return new BehaviorEventHandler(config, identityManager); + } + + @Singleton + @Provides public static FuelDropEventHandler provideFuelDropEventHandler(IdentityManager identityManager) { return new FuelDropEventHandler(identityManager); } |