aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/Context.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-09 18:03:52 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-09 18:03:52 -0700
commit336d6c4353fd77ad268aaf5cfe9c0296edfb0201 (patch)
tree1c89b1a3de09c051e305386cf3ba8dbef458cb5a /src/main/java/org/traccar/Context.java
parentadafc5f6130854dd88c191dd04489073419ee41d (diff)
downloadtrackermap-server-336d6c4353fd77ad268aaf5cfe9c0296edfb0201.tar.gz
trackermap-server-336d6c4353fd77ad268aaf5cfe9c0296edfb0201.tar.bz2
trackermap-server-336d6c4353fd77ad268aaf5cfe9c0296edfb0201.zip
Remove more from context
Diffstat (limited to 'src/main/java/org/traccar/Context.java')
-rw-r--r--src/main/java/org/traccar/Context.java12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/main/java/org/traccar/Context.java b/src/main/java/org/traccar/Context.java
index 5011764c6..42a92f436 100644
--- a/src/main/java/org/traccar/Context.java
+++ b/src/main/java/org/traccar/Context.java
@@ -126,12 +126,6 @@ public final class Context {
return notificationManager;
}
- private static NotificatorManager notificatorManager;
-
- public static NotificatorManager getNotificatorManager() {
- return notificatorManager;
- }
-
private static VelocityEngine velocityEngine;
public static VelocityEngine getVelocityEngine() {
@@ -208,8 +202,10 @@ public final class Context {
private static void initEventsModule() {
- notificationManager = new NotificationManager(dataManager, Main.getInjector().getInstance(CacheManager.class));
- notificatorManager = new NotificatorManager();
+ notificationManager = new NotificationManager(
+ dataManager,
+ Main.getInjector().getInstance(CacheManager.class),
+ Main.getInjector().getInstance(NotificatorManager.class));
Properties velocityProperties = new Properties();
velocityProperties.setProperty("file.resource.loader.path",
Context.getConfig().getString("templates.rootPath", "templates") + "/");