aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/Context.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-04 10:38:49 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-04 10:38:49 -0700
commit8c12ded81c5dce295fcb229c566209d784f55356 (patch)
tree335f01a30f5c26dc1d5cf24c2c5dfded074a1cd1 /src/main/java/org/traccar/Context.java
parentfd84b0dcb86208c2c9c64fbe067cf7d4324892ac (diff)
downloadtrackermap-server-8c12ded81c5dce295fcb229c566209d784f55356.tar.gz
trackermap-server-8c12ded81c5dce295fcb229c566209d784f55356.tar.bz2
trackermap-server-8c12ded81c5dce295fcb229c566209d784f55356.zip
Remove maintenance manager
Diffstat (limited to 'src/main/java/org/traccar/Context.java')
-rw-r--r--src/main/java/org/traccar/Context.java13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/main/java/org/traccar/Context.java b/src/main/java/org/traccar/Context.java
index 1aa673077..a833d0c52 100644
--- a/src/main/java/org/traccar/Context.java
+++ b/src/main/java/org/traccar/Context.java
@@ -32,7 +32,6 @@ import org.traccar.database.GeofenceManager;
import org.traccar.database.GroupsManager;
import org.traccar.database.IdentityManager;
import org.traccar.database.MailManager;
-import org.traccar.database.MaintenancesManager;
import org.traccar.database.NotificationManager;
import org.traccar.database.PermissionsManager;
import org.traccar.database.UsersManager;
@@ -45,7 +44,6 @@ import org.traccar.model.Device;
import org.traccar.model.Driver;
import org.traccar.model.Geofence;
import org.traccar.model.Group;
-import org.traccar.model.Maintenance;
import org.traccar.model.Notification;
import org.traccar.model.User;
import org.traccar.notification.EventForwarder;
@@ -193,12 +191,6 @@ public final class Context {
return driversManager;
}
- private static MaintenancesManager maintenancesManager;
-
- public static MaintenancesManager getMaintenancesManager() {
- return maintenancesManager;
- }
-
private static SmsManager smsManager;
public static SmsManager getSmsManager() {
@@ -289,7 +281,7 @@ public final class Context {
}
if (config.hasKey(Keys.EVENT_FORWARD_URL)) {
- eventForwarder = new EventForwarder();
+ eventForwarder = new EventForwarder(config);
}
driversManager = new DriversManager(dataManager);
@@ -300,7 +292,6 @@ public final class Context {
geofenceManager = new GeofenceManager(dataManager);
calendarManager = new CalendarManager(dataManager);
- maintenancesManager = new MaintenancesManager(dataManager);
notificationManager = new NotificationManager(dataManager);
notificatorManager = new NotificatorManager();
Properties velocityProperties = new Properties();
@@ -345,8 +336,6 @@ public final class Context {
return (BaseObjectManager<T>) geofenceManager;
} else if (clazz.equals(Driver.class)) {
return (BaseObjectManager<T>) driversManager;
- } else if (clazz.equals(Maintenance.class)) {
- return (BaseObjectManager<T>) maintenancesManager;
} else if (clazz.equals(Notification.class)) {
return (BaseObjectManager<T>) notificationManager;
}