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