aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/MainModule.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-02-23 15:33:33 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-02-23 15:33:33 -0800
commitb7d48127e60bcaa5d01f45d8df5203f28f9a1667 (patch)
treea5c6c85460775db357b39e8ac401db3c8d218dc6 /src/org/traccar/MainModule.java
parent563243a8da888244e910a4a7a10fb86ad525fdd4 (diff)
downloadtrackermap-server-b7d48127e60bcaa5d01f45d8df5203f28f9a1667.tar.gz
trackermap-server-b7d48127e60bcaa5d01f45d8df5203f28f9a1667.tar.bz2
trackermap-server-b7d48127e60bcaa5d01f45d8df5203f28f9a1667.zip
Refactor distance handler
Diffstat (limited to 'src/org/traccar/MainModule.java')
-rw-r--r--src/org/traccar/MainModule.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/org/traccar/MainModule.java b/src/org/traccar/MainModule.java
index 30cf25d3d..9b16185df 100644
--- a/src/org/traccar/MainModule.java
+++ b/src/org/traccar/MainModule.java
@@ -22,6 +22,7 @@ import com.google.inject.Singleton;
import org.traccar.config.Config;
import org.traccar.config.Keys;
import org.traccar.database.IdentityManager;
+import org.traccar.handler.DistanceHandler;
import org.traccar.handler.FilterHandler;
import javax.ws.rs.client.Client;
@@ -50,6 +51,12 @@ public class MainModule extends AbstractModule {
@Singleton
@Provides
+ public static DistanceHandler provideDistanceHandler(Config config, IdentityManager identityManager) {
+ return new DistanceHandler(config, identityManager);
+ }
+
+ @Singleton
+ @Provides
public static FilterHandler provideFilterHandler(Config config) {
if (config.getBoolean(Keys.FILTER_ENABLE)) {
return new FilterHandler(config);