aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/Context.java
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-05-10 13:27:49 +0500
committerAbyss777 <abyss@fox5.ru>2017-05-12 17:55:01 +0500
commit6c17f85d04b224ff2a09265918765c9f4fc8cf94 (patch)
tree5bbebd7f66b5af547267751fdb4de21283489716 /src/org/traccar/Context.java
parent4ce5dd893d3b95fc759fd1d0e0dbf09d0d559936 (diff)
downloadtrackermap-server-6c17f85d04b224ff2a09265918765c9f4fc8cf94.tar.gz
trackermap-server-6c17f85d04b224ff2a09265918765c9f4fc8cf94.tar.bz2
trackermap-server-6c17f85d04b224ff2a09265918765c9f4fc8cf94.zip
Implement computed attributes
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 bfef3807b..07ede4cad 100644
--- a/src/org/traccar/Context.java
+++ b/src/org/traccar/Context.java
@@ -27,6 +27,7 @@ import org.apache.velocity.app.VelocityEngine;
import org.eclipse.jetty.util.URIUtil;
import org.traccar.database.AliasesManager;
import org.traccar.database.CalendarManager;
+import org.traccar.database.AttributesManager;
import org.traccar.database.ConnectionManager;
import org.traccar.database.DataManager;
import org.traccar.database.DeviceManager;
@@ -173,6 +174,12 @@ public final class Context {
return aliasesManager;
}
+ private static AttributesManager attributesManager;
+
+ public static AttributesManager getAttributesManager() {
+ return attributesManager;
+ }
+
private static StatisticsManager statisticsManager;
public static StatisticsManager getStatisticsManager() {
@@ -310,6 +317,8 @@ public final class Context {
aliasesManager = new AliasesManager(dataManager);
+ attributesManager = new AttributesManager(dataManager);
+
statisticsManager = new StatisticsManager();
if (config.getBoolean("sms.smpp.enable")) {