diff options
author | Abyss777 <abyss@fox5.ru> | 2016-09-21 16:27:55 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-09-21 16:27:55 +0500 |
commit | baad910016f2f17e6bf89f9d5db17349c4a9a62a (patch) | |
tree | 559c919ea736013ff758d5145082bf9fa65751ac /src/org/traccar/Context.java | |
parent | 9ee812366367148387f289b9977fd809e6a56786 (diff) | |
download | trackermap-server-baad910016f2f17e6bf89f9d5db17349c4a9a62a.tar.gz trackermap-server-baad910016f2f17e6bf89f9d5db17349c4a9a62a.tar.bz2 trackermap-server-baad910016f2f17e6bf89f9d5db17349c4a9a62a.zip |
Add attributes aliases
Diffstat (limited to 'src/org/traccar/Context.java')
-rw-r--r-- | src/org/traccar/Context.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/org/traccar/Context.java b/src/org/traccar/Context.java index c7359e76c..e983ab99e 100644 --- a/src/org/traccar/Context.java +++ b/src/org/traccar/Context.java @@ -16,6 +16,8 @@ package org.traccar; import com.ning.http.client.AsyncHttpClient; + +import org.traccar.database.AliasesManager; import org.traccar.database.ConnectionManager; import org.traccar.database.DataManager; import org.traccar.database.DeviceManager; @@ -134,6 +136,12 @@ public final class Context { return eventForwarder; } + private static AliasesManager aliasesManager; + + public static AliasesManager getAliasesManager() { + return aliasesManager; + } + public static void init(String[] arguments) throws Exception { config = new Config(); @@ -233,6 +241,8 @@ public final class Context { eventForwarder = new EventForwarder(); } + aliasesManager = new AliasesManager(dataManager); + } public static void init(IdentityManager testIdentityManager) { |