aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/BasePipelineFactory.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-02-26 19:05:25 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-02-26 19:05:25 -0800
commit728e55fc00a4b7b980d6e59f2ce8664859a5c848 (patch)
treeaf71d95acbd58370dd7c0ac4463275513360f610 /src/org/traccar/BasePipelineFactory.java
parent03539bca46f9242ff62db9a6c9ab722ae2bb6a4d (diff)
downloadtrackermap-server-728e55fc00a4b7b980d6e59f2ce8664859a5c848.tar.gz
trackermap-server-728e55fc00a4b7b980d6e59f2ce8664859a5c848.tar.bz2
trackermap-server-728e55fc00a4b7b980d6e59f2ce8664859a5c848.zip
Refactor computed attributes
Diffstat (limited to 'src/org/traccar/BasePipelineFactory.java')
-rw-r--r--src/org/traccar/BasePipelineFactory.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/org/traccar/BasePipelineFactory.java b/src/org/traccar/BasePipelineFactory.java
index 088689fe7..85127fd7a 100644
--- a/src/org/traccar/BasePipelineFactory.java
+++ b/src/org/traccar/BasePipelineFactory.java
@@ -57,8 +57,6 @@ public abstract class BasePipelineFactory extends ChannelInitializer<Channel> {
private final TrackerServer server;
private int timeout;
- private ComputedAttributesHandler computedAttributesHandler;
-
private CommandResultEventHandler commandResultEventHandler;
private OverspeedEventHandler overspeedEventHandler;
private FuelDropEventHandler fuelDropEventHandler;
@@ -77,10 +75,6 @@ public abstract class BasePipelineFactory extends ChannelInitializer<Channel> {
timeout = Context.getConfig().getInteger(Keys.SERVER_TIMEOUT);
}
- if (Context.getConfig().getBoolean("processing.computedAttributes.enable")) {
- computedAttributesHandler = new ComputedAttributesHandler();
- }
-
if (Context.getConfig().getBoolean("event.enable")) {
commandResultEventHandler = new CommandResultEventHandler();
overspeedEventHandler = Context.getOverspeedEventHandler();
@@ -157,7 +151,7 @@ public abstract class BasePipelineFactory extends ChannelInitializer<Channel> {
Main.getInjector().getInstance(MotionHandler.class),
Main.getInjector().getInstance(EngineHoursHandler.class),
Main.getInjector().getInstance(CopyAttributesHandler.class),
- computedAttributesHandler);
+ Main.getInjector().getInstance(ComputedAttributesHandler.class));
if (Context.getDataManager() != null) {
pipeline.addLast(new DefaultDataHandler());