diff options
author | Anton Tananaev <anton@traccar.org> | 2022-06-14 17:06:44 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-06-14 17:06:44 -0700 |
commit | 415ba3ddb0f770b829c997beb3e575ffb6e195ec (patch) | |
tree | 82864fbaf0126b310d3d93abe40160bb371e52c6 /src/main/java/org/traccar/Context.java | |
parent | e43169b2677ea9f07154247ce7ff726d046e59e2 (diff) | |
download | trackermap-server-415ba3ddb0f770b829c997beb3e575ffb6e195ec.tar.gz trackermap-server-415ba3ddb0f770b829c997beb3e575ffb6e195ec.tar.bz2 trackermap-server-415ba3ddb0f770b829c997beb3e575ffb6e195ec.zip |
Inject connection manager
Diffstat (limited to 'src/main/java/org/traccar/Context.java')
-rw-r--r-- | src/main/java/org/traccar/Context.java | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/main/java/org/traccar/Context.java b/src/main/java/org/traccar/Context.java index 62ad01c24..a66cde464 100644 --- a/src/main/java/org/traccar/Context.java +++ b/src/main/java/org/traccar/Context.java @@ -78,12 +78,6 @@ public final class Context { return deviceManager; } - private static ConnectionManager connectionManager; - - public static ConnectionManager getConnectionManager() { - return connectionManager; - } - private static PermissionsManager permissionsManager; public static PermissionsManager getPermissionsManager() { @@ -114,15 +108,14 @@ public final class Context { if (dataManager != null) { usersManager = new UsersManager(dataManager); groupsManager = new GroupsManager(dataManager); - deviceManager = new DeviceManager(dataManager); + deviceManager = new DeviceManager( + config, dataManager, Main.getInjector().getInstance(ConnectionManager.class)); } identityManager = deviceManager; permissionsManager = new PermissionsManager(dataManager, usersManager); - connectionManager = new ConnectionManager(); - initEventsModule(); } |