aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/api/ObjectMapperProvider.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/api/ObjectMapperProvider.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/api/ObjectMapperProvider.java')
-rw-r--r--src/main/java/org/traccar/api/ObjectMapperProvider.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/api/ObjectMapperProvider.java b/src/main/java/org/traccar/api/ObjectMapperProvider.java
index 4d8b266fa..d63a4b9b0 100644
--- a/src/main/java/org/traccar/api/ObjectMapperProvider.java
+++ b/src/main/java/org/traccar/api/ObjectMapperProvider.java
@@ -17,12 +17,14 @@ package org.traccar.api;
import com.fasterxml.jackson.databind.ObjectMapper;
+import javax.inject.Inject;
import javax.ws.rs.ext.ContextResolver;
public class ObjectMapperProvider implements ContextResolver<ObjectMapper> {
private final ObjectMapper objectMapper;
+ @Inject
public ObjectMapperProvider(ObjectMapper objectMapper) {
this.objectMapper = objectMapper;
}