aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/Context.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-11 07:27:19 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-11 07:27:19 -0700
commit5b269c0e309b70866ad167fb148eafcbad5a8b26 (patch)
tree670c7f46e8d63735cdedee07e853337786a07c8a /src/main/java/org/traccar/Context.java
parent8177c9b5ebd1a337fa97b93a31e8772f7b21c356 (diff)
downloadtrackermap-server-5b269c0e309b70866ad167fb148eafcbad5a8b26.tar.gz
trackermap-server-5b269c0e309b70866ad167fb148eafcbad5a8b26.tar.bz2
trackermap-server-5b269c0e309b70866ad167fb148eafcbad5a8b26.zip
Inject event forwarder
Diffstat (limited to 'src/main/java/org/traccar/Context.java')
-rw-r--r--src/main/java/org/traccar/Context.java11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/main/java/org/traccar/Context.java b/src/main/java/org/traccar/Context.java
index 471416926..95ff2eddb 100644
--- a/src/main/java/org/traccar/Context.java
+++ b/src/main/java/org/traccar/Context.java
@@ -127,12 +127,6 @@ public final class Context {
return client;
}
- private static EventForwarder eventForwarder;
-
- public static EventForwarder getEventForwarder() {
- return eventForwarder;
- }
-
private static class ObjectMapperContextResolver implements ContextResolver<ObjectMapper> {
@Override
@@ -181,10 +175,6 @@ public final class Context {
initEventsModule();
- if (config.hasKey(Keys.EVENT_FORWARD_URL)) {
- eventForwarder = new EventForwarder(config);
- }
-
}
private static void initEventsModule() {
@@ -192,6 +182,7 @@ public final class Context {
notificationManager = new NotificationManager(
dataManager,
Main.getInjector().getInstance(CacheManager.class),
+ Main.getInjector().getInstance(EventForwarder.class),
Main.getInjector().getInstance(NotificatorManager.class),
Main.getInjector().getInstance(Geocoder.class));
Properties velocityProperties = new Properties();