aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch/src/main/java/org/sonar/batch/bootstrap/MetricProvider.java
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2013-03-25 15:37:28 +0100
committerJulien HENRY <julien.henry@sonarsource.com>2013-03-25 15:56:30 +0100
commit5ef7ec1d428671a279e2e96464c748b5cc1a1c91 (patch)
tree7b5fbc6c0a29195d8e0e87ce794af3c8a0803fbc /sonar-batch/src/main/java/org/sonar/batch/bootstrap/MetricProvider.java
parentbc02f448a493b51022db09945044d74ca97946d4 (diff)
downloadsonarqube-5ef7ec1d428671a279e2e96464c748b5cc1a1c91.tar.gz
sonarqube-5ef7ec1d428671a279e2e96464c748b5cc1a1c91.zip
SONAR-4069 Restore Metrics as a BatchExtension
to avoid compatibility issues with plugins
Diffstat (limited to 'sonar-batch/src/main/java/org/sonar/batch/bootstrap/MetricProvider.java')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/bootstrap/MetricProvider.java2
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;