diff options
Diffstat (limited to 'sonar-batch/src/main/java/org/sonar')
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/bootstrap/MetricProvider.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/MetricProvider.java b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/MetricProvider.java index 59e626ab417..d9565f1ed9c 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/MetricProvider.java +++ b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/MetricProvider.java @@ -22,12 +22,14 @@ package org.sonar.batch.bootstrap; import com.google.common.collect.Lists; import org.sonar.api.BatchComponent; import org.sonar.api.ExtensionProvider; +import org.sonar.api.batch.InstantiationStrategy; import org.sonar.api.measures.CoreMetrics; import org.sonar.api.measures.Metric; import org.sonar.api.measures.Metrics; import java.util.List; +@InstantiationStrategy(InstantiationStrategy.PER_BATCH) public class MetricProvider extends ExtensionProvider implements BatchComponent { private Metrics[] factories; |