aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/BasePipelineFactory.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-10-16 14:13:13 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-10-16 14:13:13 +1300
commit017fbd08ecbffecd1557ec022d5adc49af73300c (patch)
tree903c668263354162bf661ac6e050b438613e26f4 /src/org/traccar/BasePipelineFactory.java
parent4a49c75d675439605a3f8c3ac1719fa2c3b596b8 (diff)
downloadtrackermap-server-017fbd08ecbffecd1557ec022d5adc49af73300c.tar.gz
trackermap-server-017fbd08ecbffecd1557ec022d5adc49af73300c.tar.bz2
trackermap-server-017fbd08ecbffecd1557ec022d5adc49af73300c.zip
Start implementing injection
Diffstat (limited to 'src/org/traccar/BasePipelineFactory.java')
-rw-r--r--src/org/traccar/BasePipelineFactory.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/BasePipelineFactory.java b/src/org/traccar/BasePipelineFactory.java
index aa02fb817..d511af214 100644
--- a/src/org/traccar/BasePipelineFactory.java
+++ b/src/org/traccar/BasePipelineFactory.java
@@ -288,7 +288,7 @@ public abstract class BasePipelineFactory extends ChannelInitializer<Channel> {
}
if (Context.getConfig().getBoolean("forward.enable")) {
- pipeline.addLast(new WebDataHandler(
+ pipeline.addLast(Main.getInjector().getInstance(WebDataHandler.Factory.class).create(
Context.getConfig().getString("forward.url"), Context.getConfig().getBoolean("forward.json")));
}