diff options
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); } |