diff options
author | Anton Tananaev <anton@traccar.org> | 2022-06-04 06:50:50 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-06-04 06:50:50 -0700 |
commit | ea22ffb859f8bb8fa0a468af192fef395653d645 (patch) | |
tree | 959ceef93b645ae1573de1cf0eba86b657dec92c /src/main/java/org/traccar/Main.java | |
parent | ec76482c15094a7e04964c67d3011a7e8e1ad6a9 (diff) | |
download | trackermap-server-ea22ffb859f8bb8fa0a468af192fef395653d645.tar.gz trackermap-server-ea22ffb859f8bb8fa0a468af192fef395653d645.tar.bz2 trackermap-server-ea22ffb859f8bb8fa0a468af192fef395653d645.zip |
Remove more from context
Diffstat (limited to 'src/main/java/org/traccar/Main.java')
-rw-r--r-- | src/main/java/org/traccar/Main.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/Main.java b/src/main/java/org/traccar/Main.java index 016365837..db9892bb9 100644 --- a/src/main/java/org/traccar/Main.java +++ b/src/main/java/org/traccar/Main.java @@ -19,6 +19,7 @@ import com.google.inject.Guice; import com.google.inject.Injector; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.traccar.schedule.ScheduleManager; import java.io.File; import java.lang.management.ManagementFactory; @@ -117,9 +118,9 @@ public final class Main { LOGGER.info("Starting server..."); List<LifecycleObject> services = new LinkedList<>(); - services.add(Context.getServerManager()); + services.add(injector.getInstance(ServerManager.class)); services.add(Context.getWebServer()); - services.add(Context.getScheduleManager()); + services.add(injector.getInstance(ScheduleManager.class)); services.add(Context.getBroadcastService()); for (LifecycleObject service : services) { |