aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/Context.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-12-19 08:01:20 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-12-19 08:01:20 +1300
commit54e738d3281a463a0ea3fcf2026c2464529a9b58 (patch)
tree65e924f480d6489a5939d2f289c354240fd68e59 /src/org/traccar/Context.java
parent99f09134fb9c710114296d603c97a76f5cfb0d2a (diff)
downloadtrackermap-server-54e738d3281a463a0ea3fcf2026c2464529a9b58.tar.gz
trackermap-server-54e738d3281a463a0ea3fcf2026c2464529a9b58.tar.bz2
trackermap-server-54e738d3281a463a0ea3fcf2026c2464529a9b58.zip
Remove own JSON converter
Diffstat (limited to 'src/org/traccar/Context.java')
-rw-r--r--src/org/traccar/Context.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/org/traccar/Context.java b/src/org/traccar/Context.java
index d859e91bb..6983e32f6 100644
--- a/src/org/traccar/Context.java
+++ b/src/org/traccar/Context.java
@@ -15,6 +15,7 @@
*/
package org.traccar;
+import com.fasterxml.jackson.databind.ObjectMapper;
import com.ning.http.client.AsyncHttpClient;
import java.net.InetAddress;
@@ -65,6 +66,12 @@ public final class Context {
return loggerEnabled;
}
+ private static ObjectMapper objectMapper;
+
+ public static ObjectMapper getObjectMapper() {
+ return objectMapper;
+ }
+
private static IdentityManager identityManager;
public static IdentityManager getIdentityManager() {
@@ -181,6 +188,8 @@ public final class Context {
Log.setupLogger(config);
}
+ objectMapper = new ObjectMapper();
+
if (config.hasKey("database.url")) {
dataManager = new DataManager(config);
}