diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-03-09 17:04:08 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-03-09 17:04:08 -0800 |
commit | 5c084a0b2961dbfc3cd85a386fefe0b0da6c0c44 (patch) | |
tree | 637b9f89086bad578bbad04fd52e80bf379b8beb /src/org/traccar/MainModule.java | |
parent | 2a584c67a1663897d98e7c64fe161c88b30ef314 (diff) | |
download | trackermap-server-5c084a0b2961dbfc3cd85a386fefe0b0da6c0c44.tar.gz trackermap-server-5c084a0b2961dbfc3cd85a386fefe0b0da6c0c44.tar.bz2 trackermap-server-5c084a0b2961dbfc3cd85a386fefe0b0da6c0c44.zip |
Refactor ignition event handler
Diffstat (limited to 'src/org/traccar/MainModule.java')
-rw-r--r-- | src/org/traccar/MainModule.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/org/traccar/MainModule.java b/src/org/traccar/MainModule.java index 3f196972f..8ad89529f 100644 --- a/src/org/traccar/MainModule.java +++ b/src/org/traccar/MainModule.java @@ -61,6 +61,7 @@ import org.traccar.handler.events.AlertEventHandler; import org.traccar.handler.events.CommandResultEventHandler; import org.traccar.handler.events.FuelDropEventHandler; import org.traccar.handler.events.GeofenceEventHandler; +import org.traccar.handler.events.IgnitionEventHandler; import org.traccar.handler.events.MotionEventHandler; import org.traccar.handler.events.OverspeedEventHandler; import org.traccar.reports.model.TripsConfig; @@ -327,6 +328,12 @@ public class MainModule extends AbstractModule { return new AlertEventHandler(config, identityManager); } + @Singleton + @Provides + public static IgnitionEventHandler provideIgnitionEventHandler(IdentityManager identityManager) { + return new IgnitionEventHandler(identityManager); + } + @Override protected void configure() { binder().requireExplicitBindings(); |