aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/BasePipelineFactory.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-03-09 16:16:00 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-03-09 16:16:00 -0800
commit2a584c67a1663897d98e7c64fe161c88b30ef314 (patch)
tree008920bb182dc6ff622c88342b6fa9ca2a998335 /src/org/traccar/BasePipelineFactory.java
parentaddbd4b58d959a7996af7631dd3449ac779b027f (diff)
downloadtrackermap-server-2a584c67a1663897d98e7c64fe161c88b30ef314.tar.gz
trackermap-server-2a584c67a1663897d98e7c64fe161c88b30ef314.tar.bz2
trackermap-server-2a584c67a1663897d98e7c64fe161c88b30ef314.zip
Refactor alert event handler
Diffstat (limited to 'src/org/traccar/BasePipelineFactory.java')
-rw-r--r--src/org/traccar/BasePipelineFactory.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/org/traccar/BasePipelineFactory.java b/src/org/traccar/BasePipelineFactory.java
index 1bf8576ce..5e194c856 100644
--- a/src/org/traccar/BasePipelineFactory.java
+++ b/src/org/traccar/BasePipelineFactory.java
@@ -58,7 +58,6 @@ public abstract class BasePipelineFactory extends ChannelInitializer<Channel> {
private boolean eventsEnabled;
private int timeout;
- private AlertEventHandler alertEventHandler;
private IgnitionEventHandler ignitionEventHandler;
private MaintenanceEventHandler maintenanceEventHandler;
private DriverEventHandler driverEventHandler;
@@ -72,7 +71,6 @@ public abstract class BasePipelineFactory extends ChannelInitializer<Channel> {
}
if (eventsEnabled) {
- alertEventHandler = new AlertEventHandler();
ignitionEventHandler = new IgnitionEventHandler();
maintenanceEventHandler = new MaintenanceEventHandler();
driverEventHandler = new DriverEventHandler();
@@ -157,7 +155,7 @@ public abstract class BasePipelineFactory extends ChannelInitializer<Channel> {
Main.getInjector().getInstance(FuelDropEventHandler.class),
Main.getInjector().getInstance(MotionEventHandler.class),
Main.getInjector().getInstance(GeofenceEventHandler.class),
- alertEventHandler,
+ Main.getInjector().getInstance(AlertEventHandler.class),
ignitionEventHandler,
maintenanceEventHandler,
driverEventHandler);