aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/web/WebServer.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-16 18:11:36 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-16 18:11:36 -0700
commit0de7889d5548ab16bc8dc31e8734dc48dd51d43d (patch)
treed73c1613ef4a03a2992f2fdb262bd62b5d32586b /src/main/java/org/traccar/web/WebServer.java
parentb100cb211161d1014dfaa1ab532f1670c699e80d (diff)
downloadtrackermap-server-0de7889d5548ab16bc8dc31e8734dc48dd51d43d.tar.gz
trackermap-server-0de7889d5548ab16bc8dc31e8734dc48dd51d43d.tar.bz2
trackermap-server-0de7889d5548ab16bc8dc31e8734dc48dd51d43d.zip
Better Jersey injection
Diffstat (limited to 'src/main/java/org/traccar/web/WebServer.java')
-rw-r--r--src/main/java/org/traccar/web/WebServer.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/org/traccar/web/WebServer.java b/src/main/java/org/traccar/web/WebServer.java
index 46e401779..d7276d21f 100644
--- a/src/main/java/org/traccar/web/WebServer.java
+++ b/src/main/java/org/traccar/web/WebServer.java
@@ -15,7 +15,6 @@
*/
package org.traccar.web;
-import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.inject.Injector;
import com.google.inject.servlet.GuiceFilter;
import org.eclipse.jetty.http.HttpCookie;
@@ -173,10 +172,9 @@ public class WebServer implements LifecycleObject {
}
ResourceConfig resourceConfig = new ResourceConfig();
- resourceConfig.register(new GuiceBridgeInitializer(injector));
- resourceConfig.register(new ObjectMapperProvider(injector.getInstance(ObjectMapper.class)));
resourceConfig.registerClasses(
JacksonFeature.class,
+ ObjectMapperProvider.class,
DateParameterConverterProvider.class,
SecurityRequestFilter.class,
CorsResponseFilter.class,