diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-03-09 20:02:51 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-03-09 20:02:51 -0800 |
commit | 69ebfe201e6399340545e167110e87fdd4e16a6b (patch) | |
tree | 435cf0e2fb2b3858bdbf7360d75afe2c66f3145d /src/org/traccar/MainModule.java | |
parent | c7e9f996ed7d183442a7dd2fbbc5c9329981f261 (diff) | |
download | trackermap-server-69ebfe201e6399340545e167110e87fdd4e16a6b.tar.gz trackermap-server-69ebfe201e6399340545e167110e87fdd4e16a6b.tar.bz2 trackermap-server-69ebfe201e6399340545e167110e87fdd4e16a6b.zip |
Refactor driver 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 b459d824d..6fe8bad1c 100644 --- a/src/org/traccar/MainModule.java +++ b/src/org/traccar/MainModule.java @@ -61,6 +61,7 @@ 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.DriverEventHandler; import org.traccar.handler.events.FuelDropEventHandler; import org.traccar.handler.events.GeofenceEventHandler; import org.traccar.handler.events.IgnitionEventHandler; @@ -358,6 +359,12 @@ public class MainModule extends AbstractModule { return new MaintenanceEventHandler(identityManager, maintenancesManager); } + @Singleton + @Provides + public static DriverEventHandler provideDriverEventHandler(IdentityManager identityManager) { + return new DriverEventHandler(identityManager); + } + @Override protected void configure() { binder().requireExplicitBindings(); |