aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/Context.java
diff options
context:
space:
mode:
authorIvan Martinez <ivanfmartinez@users.noreply.github.com>2018-06-01 09:48:07 -0300
committerIvan Martinez <ivanfmartinez@users.noreply.github.com>2018-06-01 09:48:07 -0300
commit4fc750b585dd6b2953b16408dd57a8ef93fdeee9 (patch)
tree8697ae3559ad7b5e4e9b667a6d2faef568769b1a /src/org/traccar/Context.java
parent8ca7b2d0d9b5e18dd7e96a2cf5b1b8d8d751051a (diff)
downloadtrackermap-server-4fc750b585dd6b2953b16408dd57a8ef93fdeee9.tar.gz
trackermap-server-4fc750b585dd6b2953b16408dd57a8ef93fdeee9.tar.bz2
trackermap-server-4fc750b585dd6b2953b16408dd57a8ef93fdeee9.zip
move NotificatorManager instance to Context
Diffstat (limited to 'src/org/traccar/Context.java')
-rw-r--r--src/org/traccar/Context.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/org/traccar/Context.java b/src/org/traccar/Context.java
index c9ac4ec12..a7c1817cf 100644
--- a/src/org/traccar/Context.java
+++ b/src/org/traccar/Context.java
@@ -73,6 +73,7 @@ import org.traccar.geolocation.OpenCellIdGeolocationProvider;
import org.traccar.notification.EventForwarder;
import org.traccar.notification.JsonTypeEventForwarder;
import org.traccar.notification.MultiPartEventForwarder;
+import org.traccar.notification.NotificatorManager;
import org.traccar.reports.model.TripsConfig;
import org.traccar.sms.SMSManager;
import org.traccar.web.WebServer;
@@ -196,6 +197,12 @@ public final class Context {
return notificationManager;
}
+ private static NotificatorManager notificatorManager;
+
+ public static NotificatorManager getNotificatorManager() {
+ return notificatorManager;
+ }
+
private static VelocityEngine velocityEngine;
public static VelocityEngine getVelocityEngine() {
@@ -425,6 +432,7 @@ public final class Context {
geofenceManager = new GeofenceManager(dataManager);
calendarManager = new CalendarManager(dataManager);
notificationManager = new NotificationManager(dataManager);
+ notificatorManager = new NotificatorManager();
Properties velocityProperties = new Properties();
velocityProperties.setProperty("file.resource.loader.path",
Context.getConfig().getString("templates.rootPath", "templates") + "/");