diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-09-15 23:13:16 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-09-15 23:13:16 -0700 |
commit | 4fb9eba760b571d86fff4c1b0f645a7c6d4fbe16 (patch) | |
tree | ccd214a66b56dc72dd07a8fb2d8b95e9856329f9 /src/main/java/org/traccar/MainModule.java | |
parent | 1a40dfa1fc286f03ab4ce4468984a226e68afe0c (diff) | |
download | trackermap-server-4fb9eba760b571d86fff4c1b0f645a7c6d4fbe16.tar.gz trackermap-server-4fb9eba760b571d86fff4c1b0f645a7c6d4fbe16.tar.bz2 trackermap-server-4fb9eba760b571d86fff4c1b0f645a7c6d4fbe16.zip |
Update when geofences change
Diffstat (limited to 'src/main/java/org/traccar/MainModule.java')
-rw-r--r-- | src/main/java/org/traccar/MainModule.java | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/MainModule.java b/src/main/java/org/traccar/MainModule.java index 80baebeee..11100f66e 100644 --- a/src/main/java/org/traccar/MainModule.java +++ b/src/main/java/org/traccar/MainModule.java @@ -23,6 +23,7 @@ import org.traccar.config.Config; import org.traccar.config.Keys; import org.traccar.database.AttributesManager; import org.traccar.database.CalendarManager; +import org.traccar.database.ConnectionManager; import org.traccar.database.DataManager; import org.traccar.database.DeviceManager; import org.traccar.database.GeofenceManager; @@ -106,6 +107,11 @@ public class MainModule extends AbstractModule { } @Provides + public static ConnectionManager provideConnectionManager() { + return Context.getConnectionManager(); + } + + @Provides public static Client provideClient() { return Context.getClient(); } @@ -393,8 +399,9 @@ public class MainModule extends AbstractModule { @Singleton @Provides public static GeofenceEventHandler provideGeofenceEventHandler( - IdentityManager identityManager, GeofenceManager geofenceManager, CalendarManager calendarManager) { - return new GeofenceEventHandler(identityManager, geofenceManager, calendarManager); + IdentityManager identityManager, GeofenceManager geofenceManager, CalendarManager calendarManager, + ConnectionManager connectionManager) { + return new GeofenceEventHandler(identityManager, geofenceManager, calendarManager, connectionManager); } @Singleton |