aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/Context.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-09 07:08:39 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-09 07:08:39 -0700
commit4dbe47a2362bde8e2a8419b202a02e5e7fc16f87 (patch)
treefbc7dbdaa2316562f5aa4eeb0229f407a0d327af /src/main/java/org/traccar/Context.java
parent12fe28bebbdbc61214363a9c7b51bd300ed62c15 (diff)
downloadtrackermap-server-4dbe47a2362bde8e2a8419b202a02e5e7fc16f87.tar.gz
trackermap-server-4dbe47a2362bde8e2a8419b202a02e5e7fc16f87.tar.bz2
trackermap-server-4dbe47a2362bde8e2a8419b202a02e5e7fc16f87.zip
Remove more from context
Diffstat (limited to 'src/main/java/org/traccar/Context.java')
-rw-r--r--src/main/java/org/traccar/Context.java19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/main/java/org/traccar/Context.java b/src/main/java/org/traccar/Context.java
index dcbe6c811..1e158438f 100644
--- a/src/main/java/org/traccar/Context.java
+++ b/src/main/java/org/traccar/Context.java
@@ -20,7 +20,6 @@ import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.datatype.jsr353.JSR353Module;
import org.apache.velocity.app.VelocityEngine;
import org.eclipse.jetty.util.URIUtil;
-import org.traccar.broadcast.BroadcastService;
import org.traccar.config.Config;
import org.traccar.config.Keys;
import org.traccar.database.BaseObjectManager;
@@ -132,12 +131,6 @@ public final class Context {
return webServer;
}
- private static BroadcastService broadcastService;
-
- public static BroadcastService getBroadcastService() {
- return broadcastService;
- }
-
private static NotificationManager notificationManager;
public static NotificationManager getNotificationManager() {
@@ -253,10 +246,6 @@ public final class Context {
initEventsModule();
- if (config.hasKey(Keys.BROADCAST_ADDRESS)) {
- broadcastService = new BroadcastService(config, objectMapper);
- }
-
if (config.hasKey(Keys.EVENT_FORWARD_URL)) {
eventForwarder = new EventForwarder(config);
}
@@ -288,14 +277,6 @@ public final class Context {
velocityEngine.init(velocityProperties);
}
- public static void init(IdentityManager testIdentityManager) {
- config = new Config();
- objectMapper = new ObjectMapper();
- objectMapper.registerModule(new JSR353Module());
- client = ClientBuilder.newClient().register(new ObjectMapperContextResolver());
- identityManager = testIdentityManager;
- }
-
public static <T extends BaseModel> BaseObjectManager<T> getManager(Class<T> clazz) {
if (clazz.equals(Device.class)) {
return (BaseObjectManager<T>) deviceManager;