aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/BasePipelineFactory.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-02-25 23:50:42 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-02-25 23:50:42 -0800
commit34a5823cb19d4b957da1c0bdda426eb8e76950d2 (patch)
tree7d4b0efb5614e9c0aa0adac8f6b8a5c08041fa50 /src/org/traccar/BasePipelineFactory.java
parente037b4a39ccc2c93bf738b391b02add31a310d4e (diff)
downloadtrackermap-server-34a5823cb19d4b957da1c0bdda426eb8e76950d2.tar.gz
trackermap-server-34a5823cb19d4b957da1c0bdda426eb8e76950d2.tar.bz2
trackermap-server-34a5823cb19d4b957da1c0bdda426eb8e76950d2.zip
Refactor copy attributes handler
Diffstat (limited to 'src/org/traccar/BasePipelineFactory.java')
-rw-r--r--src/org/traccar/BasePipelineFactory.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/org/traccar/BasePipelineFactory.java b/src/org/traccar/BasePipelineFactory.java
index 1b3be36fc..088689fe7 100644
--- a/src/org/traccar/BasePipelineFactory.java
+++ b/src/org/traccar/BasePipelineFactory.java
@@ -57,7 +57,6 @@ public abstract class BasePipelineFactory extends ChannelInitializer<Channel> {
private final TrackerServer server;
private int timeout;
- private CopyAttributesHandler copyAttributesHandler;
private ComputedAttributesHandler computedAttributesHandler;
private CommandResultEventHandler commandResultEventHandler;
@@ -78,10 +77,6 @@ public abstract class BasePipelineFactory extends ChannelInitializer<Channel> {
timeout = Context.getConfig().getInteger(Keys.SERVER_TIMEOUT);
}
- if (Context.getConfig().getBoolean("processing.copyAttributes.enable")) {
- copyAttributesHandler = new CopyAttributesHandler();
- }
-
if (Context.getConfig().getBoolean("processing.computedAttributes.enable")) {
computedAttributesHandler = new ComputedAttributesHandler();
}
@@ -161,7 +156,7 @@ public abstract class BasePipelineFactory extends ChannelInitializer<Channel> {
Main.getInjector().getInstance(GeocoderHandler.class),
Main.getInjector().getInstance(MotionHandler.class),
Main.getInjector().getInstance(EngineHoursHandler.class),
- copyAttributesHandler,
+ Main.getInjector().getInstance(CopyAttributesHandler.class),
computedAttributesHandler);
if (Context.getDataManager() != null) {