aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/BasePipelineFactory.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-03-09 16:11:16 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-03-09 16:11:16 -0800
commitaddbd4b58d959a7996af7631dd3449ac779b027f (patch)
treea1814e463c07a93c359986d1e25db83df2f695b7 /src/org/traccar/BasePipelineFactory.java
parente3668177e4cb989b596ed7b2eef71eb348860736 (diff)
downloadtrackermap-server-addbd4b58d959a7996af7631dd3449ac779b027f.tar.gz
trackermap-server-addbd4b58d959a7996af7631dd3449ac779b027f.tar.bz2
trackermap-server-addbd4b58d959a7996af7631dd3449ac779b027f.zip
Refactor geofence 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 d0136a6bb..1bf8576ce 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 GeofenceEventHandler geofenceEventHandler;
private AlertEventHandler alertEventHandler;
private IgnitionEventHandler ignitionEventHandler;
private MaintenanceEventHandler maintenanceEventHandler;
@@ -73,7 +72,6 @@ public abstract class BasePipelineFactory extends ChannelInitializer<Channel> {
}
if (eventsEnabled) {
- geofenceEventHandler = new GeofenceEventHandler();
alertEventHandler = new AlertEventHandler();
ignitionEventHandler = new IgnitionEventHandler();
maintenanceEventHandler = new MaintenanceEventHandler();
@@ -158,7 +156,7 @@ public abstract class BasePipelineFactory extends ChannelInitializer<Channel> {
Main.getInjector().getInstance(OverspeedEventHandler.class),
Main.getInjector().getInstance(FuelDropEventHandler.class),
Main.getInjector().getInstance(MotionEventHandler.class),
- geofenceEventHandler,
+ Main.getInjector().getInstance(GeofenceEventHandler.class),
alertEventHandler,
ignitionEventHandler,
maintenanceEventHandler,