diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-03-09 17:09:13 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-03-09 17:09:13 -0800 |
commit | 312f5d2a3af3ec53cc6ff73cd3424d68a2774dcd (patch) | |
tree | e87286756e9a58144085815b70a226be755f3dbd /src/org/traccar/BasePipelineFactory.java | |
parent | 5c084a0b2961dbfc3cd85a386fefe0b0da6c0c44 (diff) | |
download | trackermap-server-312f5d2a3af3ec53cc6ff73cd3424d68a2774dcd.tar.gz trackermap-server-312f5d2a3af3ec53cc6ff73cd3424d68a2774dcd.tar.bz2 trackermap-server-312f5d2a3af3ec53cc6ff73cd3424d68a2774dcd.zip |
Refactor default data handler
Diffstat (limited to 'src/org/traccar/BasePipelineFactory.java')
-rw-r--r-- | src/org/traccar/BasePipelineFactory.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/org/traccar/BasePipelineFactory.java b/src/org/traccar/BasePipelineFactory.java index 550145860..e3328a524 100644 --- a/src/org/traccar/BasePipelineFactory.java +++ b/src/org/traccar/BasePipelineFactory.java @@ -25,6 +25,7 @@ import io.netty.handler.timeout.IdleStateHandler; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.traccar.config.Keys; +import org.traccar.handler.DefaultDataHandler; import org.traccar.handler.events.AlertEventHandler; import org.traccar.handler.events.CommandResultEventHandler; import org.traccar.handler.events.DriverEventHandler; @@ -139,11 +140,8 @@ public abstract class BasePipelineFactory extends ChannelInitializer<Channel> { Main.getInjector().getInstance(EngineHoursHandler.class), Main.getInjector().getInstance(CopyAttributesHandler.class), Main.getInjector().getInstance(ComputedAttributesHandler.class), - Main.getInjector().getInstance(WebDataHandler.class)); - - if (Context.getDataManager() != null) { - pipeline.addLast(new DefaultDataHandler()); - } + Main.getInjector().getInstance(WebDataHandler.class), + Main.getInjector().getInstance(DefaultDataHandler.class)); if (eventsEnabled) { addHandlers( |