aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/Context.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-14 18:50:48 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-14 18:50:48 -0700
commit0d5c7606c73d84aab44f69936ab62afa0b68939b (patch)
tree4e9cbebe1ddcd3e3b75a15bee8e23d05374ca434 /src/main/java/org/traccar/Context.java
parent415ba3ddb0f770b829c997beb3e575ffb6e195ec (diff)
downloadtrackermap-server-0d5c7606c73d84aab44f69936ab62afa0b68939b.tar.gz
trackermap-server-0d5c7606c73d84aab44f69936ab62afa0b68939b.tar.bz2
trackermap-server-0d5c7606c73d84aab44f69936ab62afa0b68939b.zip
Refactor notification manager
Diffstat (limited to 'src/main/java/org/traccar/Context.java')
-rw-r--r--src/main/java/org/traccar/Context.java26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/main/java/org/traccar/Context.java b/src/main/java/org/traccar/Context.java
index a66cde464..51c420390 100644
--- a/src/main/java/org/traccar/Context.java
+++ b/src/main/java/org/traccar/Context.java
@@ -22,20 +22,14 @@ import org.traccar.database.DataManager;
import org.traccar.database.DeviceManager;
import org.traccar.database.GroupsManager;
import org.traccar.database.IdentityManager;
-import org.traccar.database.NotificationManager;
import org.traccar.database.PermissionsManager;
import org.traccar.database.UsersManager;
-import org.traccar.geocoder.Geocoder;
import org.traccar.helper.Log;
import org.traccar.model.BaseModel;
import org.traccar.model.Device;
import org.traccar.model.Group;
-import org.traccar.model.Notification;
import org.traccar.model.User;
-import org.traccar.notification.EventForwarder;
-import org.traccar.notification.NotificatorManager;
import org.traccar.session.ConnectionManager;
-import org.traccar.session.cache.CacheManager;
public final class Context {
@@ -84,12 +78,6 @@ public final class Context {
return permissionsManager;
}
- private static NotificationManager notificationManager;
-
- public static NotificationManager getNotificationManager() {
- return notificationManager;
- }
-
public static void init(String configFile) throws Exception {
try {
@@ -116,18 +104,6 @@ public final class Context {
permissionsManager = new PermissionsManager(dataManager, usersManager);
- initEventsModule();
-
- }
-
- private static void initEventsModule() {
-
- notificationManager = new NotificationManager(
- dataManager,
- Main.getInjector().getInstance(CacheManager.class),
- Main.getInjector().getInstance(EventForwarder.class),
- Main.getInjector().getInstance(NotificatorManager.class),
- Main.getInjector().getInstance(Geocoder.class));
}
public static <T extends BaseModel> BaseObjectManager<T> getManager(Class<T> clazz) {
@@ -137,8 +113,6 @@ public final class Context {
return (BaseObjectManager<T>) groupsManager;
} else if (clazz.equals(User.class)) {
return (BaseObjectManager<T>) usersManager;
- } else if (clazz.equals(Notification.class)) {
- return (BaseObjectManager<T>) notificationManager;
}
return null;
}