summaryrefslogtreecommitdiffstats
path: root/container-core
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-06-03 20:15:35 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2020-06-03 20:15:35 +0000
commit68409466b1b5df8175a9aa6757c59c4a5aa3c965 (patch)
treedb255855c7bb68c89792ec9d0a777a230cf73835 /container-core
parent60feaaa998976c427570bea1f9138472249a4ffd (diff)
Annotate primary constructor with @Inject.
Diffstat (limited to 'container-core')
-rw-r--r--container-core/src/main/java/com/yahoo/container/handler/ThreadPoolProvider.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/container-core/src/main/java/com/yahoo/container/handler/ThreadPoolProvider.java b/container-core/src/main/java/com/yahoo/container/handler/ThreadPoolProvider.java
index 958e958456c..4a9e6a8b7db 100644
--- a/container-core/src/main/java/com/yahoo/container/handler/ThreadPoolProvider.java
+++ b/container-core/src/main/java/com/yahoo/container/handler/ThreadPoolProvider.java
@@ -1,6 +1,7 @@
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.container.handler;
+import com.google.inject.Inject;
import com.yahoo.component.AbstractComponent;
import com.yahoo.container.di.componentgraph.Provider;
import com.yahoo.container.handler.threadpool.ContainerThreadPool;
@@ -25,6 +26,7 @@ public class ThreadPoolProvider extends AbstractComponent implements Provider<Ex
this.threadpool = new ContainerThreadPool(threadpoolConfig, metric);
}
+ @Inject
public ThreadPoolProvider(ThreadpoolConfig threadpoolConfig, Metric metric, ProcessTerminator processTerminator) {
this.threadpool = new ContainerThreadPool(threadpoolConfig, metric, processTerminator);
}