diff options
author | ninioe <ninioe@gmail.com> | 2016-07-17 09:55:25 +0300 |
---|---|---|
committer | ninioe <ninioe@gmail.com> | 2016-07-17 09:55:25 +0300 |
commit | 5380ff196c88cc6b57fff62db71e4ab3a05aaa98 (patch) | |
tree | 636f455a5d2a946ccff892ea6db84fb155ff8f69 /src/org/traccar/Context.java | |
parent | 4d55b911bd252c90d1d0ec4053d8502154192676 (diff) | |
parent | 6dfd599ef69fac9ea0851e3c07873c6368231610 (diff) | |
download | trackermap-server-5380ff196c88cc6b57fff62db71e4ab3a05aaa98.tar.gz trackermap-server-5380ff196c88cc6b57fff62db71e4ab3a05aaa98.tar.bz2 trackermap-server-5380ff196c88cc6b57fff62db71e4ab3a05aaa98.zip |
Merge remote-tracking branch 'refs/remotes/tananaev/master'
Diffstat (limited to 'src/org/traccar/Context.java')
-rw-r--r-- | src/org/traccar/Context.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/org/traccar/Context.java b/src/org/traccar/Context.java index ebe700221..0bb18b675 100644 --- a/src/org/traccar/Context.java +++ b/src/org/traccar/Context.java @@ -35,6 +35,7 @@ import org.traccar.helper.Log; import org.traccar.location.LocationProvider; import org.traccar.location.MozillaLocationProvider; import org.traccar.location.OpenCellIdLocationProvider; +import org.traccar.notification.EventForwarder; import org.traccar.web.WebServer; public final class Context { @@ -120,6 +121,12 @@ public final class Context { return ASYNC_HTTP_CLIENT; } + private static EventForwarder eventForwarder; + + public static EventForwarder getEventForvarder() { + return eventForwarder; + } + public static void init(String[] arguments) throws Exception { config = new Config(); @@ -210,6 +217,10 @@ public final class Context { serverManager = new ServerManager(); + if (config.getBoolean("event.forward.enable")) { + eventForwarder = new EventForwarder(); + } + } public static void init(IdentityManager testIdentityManager) { |