aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/Context.java
diff options
context:
space:
mode:
authorSrk <watertext@hotmail.it>2017-11-20 19:55:11 +0100
committerSrk <watertext@hotmail.it>2017-11-20 19:55:11 +0100
commit0daa91ca51ecbb23a7f962fd64bfe5817f8eaa29 (patch)
treed584f67ce2c92116ecf1166c786cf6c63dfe0746 /src/org/traccar/Context.java
parentf74749cac2709989fd627115248c7f363f77cc2b (diff)
downloadtrackermap-server-0daa91ca51ecbb23a7f962fd64bfe5817f8eaa29.tar.gz
trackermap-server-0daa91ca51ecbb23a7f962fd64bfe5817f8eaa29.tar.bz2
trackermap-server-0daa91ca51ecbb23a7f962fd64bfe5817f8eaa29.zip
Minor refactoring
Diffstat (limited to 'src/org/traccar/Context.java')
-rw-r--r--src/org/traccar/Context.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/org/traccar/Context.java b/src/org/traccar/Context.java
index a03b14b1b..d77b6878f 100644
--- a/src/org/traccar/Context.java
+++ b/src/org/traccar/Context.java
@@ -325,7 +325,7 @@ public final class Context {
objectMapper = new ObjectMapper();
objectMapper.setConfig(
objectMapper.getSerializationConfig().without(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS));
- if (Context.getConfig().getBoolean("config.mapper.prettyPrintedJson")) {
+ if (Context.getConfig().getBoolean("mapper.prettyPrintedJson")) {
objectMapper.enable(SerializationFeature.INDENT_OUTPUT);
}
@@ -354,7 +354,7 @@ public final class Context {
}
if (config.getBoolean("geolocation.enable")) {
- initLocationResolutionSystem();
+ initGeolocationModule();
}
if (config.getBoolean("web.enable")) {
@@ -368,7 +368,7 @@ public final class Context {
tripsConfig = initTripsConfig();
if (config.getBoolean("event.enable")) {
- initEventsSubsystem();
+ initEventsModule();
}
serverManager = new ServerManager();
@@ -395,7 +395,7 @@ public final class Context {
}
- private static void initLocationResolutionSystem() {
+ private static void initGeolocationModule() {
String type = config.getString("geolocation.type", "mozilla");
String url = config.getString("geolocation.url");
@@ -417,7 +417,7 @@ public final class Context {
}
}
- private static void initEventsSubsystem() {
+ private static void initEventsModule() {
geofenceManager = new GeofenceManager(dataManager);
calendarManager = new CalendarManager(dataManager);