aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/BasePipelineFactory.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-02-27 23:08:06 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-02-27 23:08:06 -0800
commit15f0744893304a3f2a77d36734cdc2a2706286dd (patch)
tree5dee934a55b6e1f699390a5cda56af60fee84313 /src/org/traccar/BasePipelineFactory.java
parent08754125ed5d152efe29926728033da3658c69fc (diff)
downloadtrackermap-server-15f0744893304a3f2a77d36734cdc2a2706286dd.tar.gz
trackermap-server-15f0744893304a3f2a77d36734cdc2a2706286dd.tar.bz2
trackermap-server-15f0744893304a3f2a77d36734cdc2a2706286dd.zip
Minor refactoring
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 e9f786792..1366850c0 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 CommandResultEventHandler commandResultEventHandler;
private OverspeedEventHandler overspeedEventHandler;
private FuelDropEventHandler fuelDropEventHandler;
private MotionEventHandler motionEventHandler;
@@ -77,7 +76,6 @@ public abstract class BasePipelineFactory extends ChannelInitializer<Channel> {
}
if (eventsEnabled) {
- commandResultEventHandler = new CommandResultEventHandler();
overspeedEventHandler = Context.getOverspeedEventHandler();
fuelDropEventHandler = new FuelDropEventHandler();
motionEventHandler = Context.getMotionEventHandler();
@@ -162,7 +160,7 @@ public abstract class BasePipelineFactory extends ChannelInitializer<Channel> {
if (eventsEnabled) {
addHandlers(
pipeline,
- commandResultEventHandler,
+ Main.getInjector().getInstance(CommandResultEventHandler.class),
overspeedEventHandler,
fuelDropEventHandler,
motionEventHandler,