aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/database
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-07-13 19:11:36 +0500
committerAbyss777 <abyss@fox5.ru>2016-07-13 19:11:36 +0500
commit3502e07f0aee825f8599526428dd1962d81f9933 (patch)
tree546f03304f31ac7db4873cc34f2cceda4acb0b01 /src/org/traccar/database
parent1593a9dee20ee7355f9f5feb6d121a5ad69a283f (diff)
downloadtraccar-server-3502e07f0aee825f8599526428dd1962d81f9933.tar.gz
traccar-server-3502e07f0aee825f8599526428dd1962d81f9933.tar.bz2
traccar-server-3502e07f0aee825f8599526428dd1962d81f9933.zip
Renamed to EventForwarder and moved to Context
Diffstat (limited to 'src/org/traccar/database')
-rw-r--r--src/org/traccar/database/NotificationManager.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/org/traccar/database/NotificationManager.java b/src/org/traccar/database/NotificationManager.java
index 90edce43e..911c5d2dc 100644
--- a/src/org/traccar/database/NotificationManager.java
+++ b/src/org/traccar/database/NotificationManager.java
@@ -31,7 +31,6 @@ import org.traccar.helper.Log;
import org.traccar.model.Event;
import org.traccar.model.Notification;
import org.traccar.model.Position;
-import org.traccar.notification.NotificationForward;
import org.traccar.notification.NotificationMail;
public class NotificationManager {
@@ -42,11 +41,8 @@ public class NotificationManager {
private final ReadWriteLock notificationsLock = new ReentrantReadWriteLock();
- private final boolean forward;
-
public NotificationManager(DataManager dataManager) {
this.dataManager = dataManager;
- forward = Context.getConfig().getBoolean("event.forward.enable");
refresh();
}
@@ -72,8 +68,8 @@ public class NotificationManager {
}
}
}
- if (forward) {
- NotificationForward.forwardEvent(event, position);
+ if (Context.getEventForvarder() != null) {
+ Context.getEventForvarder().forwardEvent(event, position);
}
}