diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-09-29 23:11:22 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-09-29 23:40:28 +1200 |
commit | 6a218f0d3ab2644a3338f46ac40beac235772fcf (patch) | |
tree | ffb23b7184e92cf30c5920b1dc7e5e04667edbe6 /src/org/traccar/Context.java | |
parent | 83764daf8bc91ccbc23410f70e937b8c19f562d7 (diff) | |
download | trackermap-server-6a218f0d3ab2644a3338f46ac40beac235772fcf.tar.gz trackermap-server-6a218f0d3ab2644a3338f46ac40beac235772fcf.tar.bz2 trackermap-server-6a218f0d3ab2644a3338f46ac40beac235772fcf.zip |
Re-implement mail notificator
Diffstat (limited to 'src/org/traccar/Context.java')
-rw-r--r-- | src/org/traccar/Context.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/org/traccar/Context.java b/src/org/traccar/Context.java index b310d6740..2607fd107 100644 --- a/src/org/traccar/Context.java +++ b/src/org/traccar/Context.java @@ -41,6 +41,7 @@ import org.traccar.database.DeviceManager; import org.traccar.database.DriversManager; import org.traccar.database.IdentityManager; import org.traccar.database.LdapProvider; +import org.traccar.database.MailManager; import org.traccar.database.MaintenancesManager; import org.traccar.database.MediaManager; import org.traccar.database.NotificationManager; @@ -141,6 +142,12 @@ public final class Context { return ldapProvider; } + private static MailManager mailManager; + + public static MailManager getMailManager() { + return mailManager; + } + private static MediaManager mediaManager; public static MediaManager getMediaManager() { @@ -378,6 +385,8 @@ public final class Context { ldapProvider = new LdapProvider(config); } + mailManager = new MailManager(); + mediaManager = new MediaManager(config.getString("media.path")); if (dataManager != null) { |