diff options
author | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2021-07-08 14:43:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-08 14:43:21 +0200 |
commit | 19ef310d5795cff7c131ba432af8aee1cf0f7a9e (patch) | |
tree | 5f59cc3ac0c28200f6f2b2b22281d95beb912bb6 | |
parent | c517b78271ff5018eba68aecf52b5000a92a1d13 (diff) | |
parent | cebaf9d656089a15b5055fc01e111e3dbca1de29 (diff) |
Merge pull request #18569 from vespa-engine/remove-usage-of-Component-annotation
Remove usage of the @Component annotation for jersey resources.
-rw-r--r-- | orchestrator/src/main/java/com/yahoo/vespa/orchestrator/status/ZkStatusService.java | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/status/ZkStatusService.java b/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/status/ZkStatusService.java index daafc81e0f3..8902bf1641c 100644 --- a/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/status/ZkStatusService.java +++ b/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/status/ZkStatusService.java @@ -3,7 +3,6 @@ package com.yahoo.vespa.orchestrator.status; import com.google.common.util.concurrent.UncheckedTimeoutException; import com.yahoo.config.provision.ApplicationId; -import com.yahoo.container.jaxrs.annotation.Component; import com.yahoo.jdisc.Metric; import com.yahoo.jdisc.Timer; import com.yahoo.path.Path; @@ -54,16 +53,10 @@ public class ZkStatusService implements StatusService { private final ConcurrentHashMap<Map<String, String>, Metric.Context> cachedContexts = new ConcurrentHashMap<>(); @Inject - public ZkStatusService( - @Component Curator curator, - @Component Metric metric, - @Component Timer timer, - @Component AntiServiceMonitor antiServiceMonitor) { - this(curator, - metric, - timer, - new HostInfosCache(curator, new HostInfosServiceImpl(curator, timer)), - antiServiceMonitor); + public ZkStatusService(Curator curator, Metric metric, Timer timer, AntiServiceMonitor antiServiceMonitor) { + this(curator, metric, timer, + new HostInfosCache(curator, new HostInfosServiceImpl(curator, timer)), + antiServiceMonitor); } /** Non-private for testing only. */ |