aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/Context.java
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-07-11 17:33:33 +0500
committerAbyss777 <abyss@fox5.ru>2017-07-11 17:33:33 +0500
commit0588389bee46910392d4bb0f017b5bae61581e78 (patch)
tree7beb6d7b3bed8d43916ddb6e384e7ce3f5abd06e /src/org/traccar/Context.java
parent7863a5ca3358cef028b77188538a0893a737ddbf (diff)
downloadtrackermap-server-0588389bee46910392d4bb0f017b5bae61581e78.tar.gz
trackermap-server-0588389bee46910392d4bb0f017b5bae61581e78.tar.bz2
trackermap-server-0588389bee46910392d4bb0f017b5bae61581e78.zip
Implement DriverResource
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 9626d949c..a4fc5b679 100644
--- a/src/org/traccar/Context.java
+++ b/src/org/traccar/Context.java
@@ -31,6 +31,7 @@ import org.traccar.database.AttributesManager;
import org.traccar.database.ConnectionManager;
import org.traccar.database.DataManager;
import org.traccar.database.DeviceManager;
+import org.traccar.database.DriversManager;
import org.traccar.database.IdentityManager;
import org.traccar.database.MediaManager;
import org.traccar.database.NotificationManager;
@@ -187,6 +188,12 @@ public final class Context {
return attributesManager;
}
+ private static DriversManager driversManager;
+
+ public static DriversManager getDriversManager() {
+ return driversManager;
+ }
+
private static StatisticsManager statisticsManager;
public static StatisticsManager getStatisticsManager() {
@@ -330,6 +337,8 @@ public final class Context {
attributesManager = new AttributesManager(dataManager);
+ driversManager = new DriversManager(dataManager);
+
statisticsManager = new StatisticsManager();
if (config.getBoolean("sms.smpp.enable")) {