diff --git a/server/src/main/java/io/druid/client/selector/CustomTierSelectorStrategy.java b/server/src/main/java/io/druid/client/selector/CustomTierSelectorStrategy.java index 1ed750a0dc9..36c3a730447 100644 --- a/server/src/main/java/io/druid/client/selector/CustomTierSelectorStrategy.java +++ b/server/src/main/java/io/druid/client/selector/CustomTierSelectorStrategy.java @@ -1,8 +1,9 @@ package io.druid.client.selector; +import com.fasterxml.jackson.annotation.JacksonInject; +import com.fasterxml.jackson.annotation.JsonCreator; import com.google.api.client.util.Maps; import com.google.common.primitives.Ints; -import com.google.inject.Inject; import java.util.Comparator; import java.util.Map; @@ -13,10 +14,10 @@ public class CustomTierSelectorStrategy extends AbstractTierSelectorStrategy { private final Comparator comparator; - @Inject + @JsonCreator public CustomTierSelectorStrategy( - ServerSelectorStrategy serverSelectorStrategy, - CustomTierSelectorStrategyConfig config + @JacksonInject ServerSelectorStrategy serverSelectorStrategy, + @JacksonInject CustomTierSelectorStrategyConfig config ) { super(serverSelectorStrategy); diff --git a/server/src/main/java/io/druid/client/selector/HighestPriorityTierSelectorStrategy.java b/server/src/main/java/io/druid/client/selector/HighestPriorityTierSelectorStrategy.java index a2dd22ec792..13995c610f5 100644 --- a/server/src/main/java/io/druid/client/selector/HighestPriorityTierSelectorStrategy.java +++ b/server/src/main/java/io/druid/client/selector/HighestPriorityTierSelectorStrategy.java @@ -19,8 +19,9 @@ package io.druid.client.selector; +import com.fasterxml.jackson.annotation.JacksonInject; +import com.fasterxml.jackson.annotation.JsonCreator; import com.google.common.primitives.Ints; -import com.google.inject.Inject; import java.util.Comparator; @@ -37,8 +38,8 @@ public class HighestPriorityTierSelectorStrategy extends AbstractTierSelectorStr } }; - @Inject - public HighestPriorityTierSelectorStrategy(ServerSelectorStrategy serverSelectorStrategy) + @JsonCreator + public HighestPriorityTierSelectorStrategy(@JacksonInject ServerSelectorStrategy serverSelectorStrategy) { super(serverSelectorStrategy); } diff --git a/server/src/main/java/io/druid/client/selector/LowestPriorityTierSelectorStrategy.java b/server/src/main/java/io/druid/client/selector/LowestPriorityTierSelectorStrategy.java index 00e6988a50e..52805a30e39 100644 --- a/server/src/main/java/io/druid/client/selector/LowestPriorityTierSelectorStrategy.java +++ b/server/src/main/java/io/druid/client/selector/LowestPriorityTierSelectorStrategy.java @@ -19,8 +19,9 @@ package io.druid.client.selector; +import com.fasterxml.jackson.annotation.JacksonInject; +import com.fasterxml.jackson.annotation.JsonCreator; import com.google.common.primitives.Ints; -import com.google.inject.Inject; import java.util.Comparator; @@ -37,8 +38,8 @@ public class LowestPriorityTierSelectorStrategy extends AbstractTierSelectorStra } }; - @Inject - public LowestPriorityTierSelectorStrategy(ServerSelectorStrategy serverSelectorStrategy) + @JsonCreator + public LowestPriorityTierSelectorStrategy(@JacksonInject ServerSelectorStrategy serverSelectorStrategy) { super(serverSelectorStrategy); }