diff options
author | Anton Tananaev <anton@traccar.org> | 2022-06-09 18:03:52 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-06-09 18:03:52 -0700 |
commit | 336d6c4353fd77ad268aaf5cfe9c0296edfb0201 (patch) | |
tree | 1c89b1a3de09c051e305386cf3ba8dbef458cb5a /src/main/java/org/traccar/Context.java | |
parent | adafc5f6130854dd88c191dd04489073419ee41d (diff) | |
download | trackermap-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.java | 12 |
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") + "/"); |