aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-03-23 10:14:22 +0100
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-03-29 13:06:51 +0200
commit1c623f97a76734a13224832da38cfa1721d03abe (patch)
tree1c2d6a0a8426bf0762aa22e5c6f73b1ed2206a97 /sonar-core
parent17f23a671f57beac9980635459a92b1eb4fb5eb8 (diff)
downloadsonarqube-1c623f97a76734a13224832da38cfa1721d03abe.tar.gz
sonarqube-1c623f97a76734a13224832da38cfa1721d03abe.zip
SONAR-7441 add ComputeEngineSide annotation where applicable
Diffstat (limited to 'sonar-core')
-rw-r--r--sonar-core/src/main/java/org/sonar/core/component/DefaultResourceTypes.java2
-rw-r--r--sonar-core/src/main/java/org/sonar/core/i18n/DefaultI18n.java2
-rw-r--r--sonar-core/src/main/java/org/sonar/core/i18n/RuleI18nManager.java2
-rw-r--r--sonar-core/src/main/java/org/sonar/core/metric/BatchMetrics.java4
-rw-r--r--sonar-core/src/main/java/org/sonar/core/platform/ComponentContainer.java2
-rw-r--r--sonar-core/src/main/java/org/sonar/core/platform/PluginClassloaderFactory.java2
-rw-r--r--sonar-core/src/main/java/org/sonar/core/platform/PluginRepository.java2
7 files changed, 14 insertions, 2 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/component/DefaultResourceTypes.java b/sonar-core/src/main/java/org/sonar/core/component/DefaultResourceTypes.java
index bc2eba47813..7539c40512a 100644
--- a/sonar-core/src/main/java/org/sonar/core/component/DefaultResourceTypes.java
+++ b/sonar-core/src/main/java/org/sonar/core/component/DefaultResourceTypes.java
@@ -23,10 +23,12 @@ import org.sonar.api.batch.BatchSide;
import org.sonar.api.resources.Qualifiers;
import org.sonar.api.resources.ResourceType;
import org.sonar.api.resources.ResourceTypeTree;
+import org.sonar.api.ce.ComputeEngineSide;
import org.sonar.api.server.ServerSide;
@BatchSide
@ServerSide
+@ComputeEngineSide
public final class DefaultResourceTypes {
private static final String SUPPORTS_MEASURE_FILTERS = "supportsMeasureFilters";
diff --git a/sonar-core/src/main/java/org/sonar/core/i18n/DefaultI18n.java b/sonar-core/src/main/java/org/sonar/core/i18n/DefaultI18n.java
index 8ea60b6d2d0..72486d51c07 100644
--- a/sonar-core/src/main/java/org/sonar/core/i18n/DefaultI18n.java
+++ b/sonar-core/src/main/java/org/sonar/core/i18n/DefaultI18n.java
@@ -43,6 +43,7 @@ import org.apache.commons.io.IOUtils;
import org.picocontainer.Startable;
import org.sonar.api.batch.BatchSide;
import org.sonar.api.i18n.I18n;
+import org.sonar.api.ce.ComputeEngineSide;
import org.sonar.api.server.ServerSide;
import org.sonar.api.utils.SonarException;
import org.sonar.api.utils.System2;
@@ -53,6 +54,7 @@ import org.sonar.core.platform.PluginRepository;
@BatchSide
@ServerSide
+@ComputeEngineSide
public class DefaultI18n implements I18n, Startable {
private static final Logger LOG = Loggers.get(DefaultI18n.class);
diff --git a/sonar-core/src/main/java/org/sonar/core/i18n/RuleI18nManager.java b/sonar-core/src/main/java/org/sonar/core/i18n/RuleI18nManager.java
index 69a59a21705..a3270e12e3f 100644
--- a/sonar-core/src/main/java/org/sonar/core/i18n/RuleI18nManager.java
+++ b/sonar-core/src/main/java/org/sonar/core/i18n/RuleI18nManager.java
@@ -25,6 +25,7 @@ import org.apache.commons.lang.StringUtils;
import org.sonar.api.batch.BatchSide;
import org.sonar.api.i18n.RuleI18n;
import org.sonar.api.rules.Rule;
+import org.sonar.api.ce.ComputeEngineSide;
import org.sonar.api.server.ServerSide;
/**
@@ -33,6 +34,7 @@ import org.sonar.api.server.ServerSide;
@Deprecated
@BatchSide
@ServerSide
+@ComputeEngineSide
public class RuleI18nManager implements RuleI18n {
private static final String NAME_SUFFIX = ".name";
diff --git a/sonar-core/src/main/java/org/sonar/core/metric/BatchMetrics.java b/sonar-core/src/main/java/org/sonar/core/metric/BatchMetrics.java
index 3f626f79151..fbe8fb11b2e 100644
--- a/sonar-core/src/main/java/org/sonar/core/metric/BatchMetrics.java
+++ b/sonar-core/src/main/java/org/sonar/core/metric/BatchMetrics.java
@@ -28,7 +28,7 @@ import javax.annotation.Nullable;
import org.sonar.api.batch.BatchSide;
import org.sonar.api.measures.Metric;
import org.sonar.api.measures.Metrics;
-import org.sonar.api.server.ServerSide;
+import org.sonar.api.ce.ComputeEngineSide;
import static com.google.common.collect.FluentIterable.from;
import static java.util.Arrays.asList;
@@ -86,7 +86,7 @@ import static org.sonar.api.measures.CoreMetrics.UNCOVERED_LINES;
* <p/>
* The batch should not send other metrics, and the Compute Engine should not allow other metrics.
*/
-@ServerSide
+@ComputeEngineSide
@BatchSide
public class BatchMetrics {
diff --git a/sonar-core/src/main/java/org/sonar/core/platform/ComponentContainer.java b/sonar-core/src/main/java/org/sonar/core/platform/ComponentContainer.java
index 597311caf07..44be61d9266 100644
--- a/sonar-core/src/main/java/org/sonar/core/platform/ComponentContainer.java
+++ b/sonar-core/src/main/java/org/sonar/core/platform/ComponentContainer.java
@@ -38,6 +38,7 @@ import org.picocontainer.lifecycle.ReflectionLifecycleStrategy;
import org.picocontainer.monitors.NullComponentMonitor;
import org.sonar.api.batch.BatchSide;
import org.sonar.api.config.PropertyDefinitions;
+import org.sonar.api.ce.ComputeEngineSide;
import org.sonar.api.server.ServerSide;
import org.sonar.api.utils.log.Loggers;
import org.sonar.api.utils.log.Profiler;
@@ -47,6 +48,7 @@ import static java.util.Objects.requireNonNull;
@BatchSide
@ServerSide
+@ComputeEngineSide
public class ComponentContainer implements ContainerPopulator.Container {
private static final class ExtendedDefaultPicoContainer extends DefaultPicoContainer {
diff --git a/sonar-core/src/main/java/org/sonar/core/platform/PluginClassloaderFactory.java b/sonar-core/src/main/java/org/sonar/core/platform/PluginClassloaderFactory.java
index 2853e39f0db..03a3c21f501 100644
--- a/sonar-core/src/main/java/org/sonar/core/platform/PluginClassloaderFactory.java
+++ b/sonar-core/src/main/java/org/sonar/core/platform/PluginClassloaderFactory.java
@@ -27,6 +27,7 @@ import java.util.HashMap;
import java.util.Map;
import org.apache.commons.io.FileUtils;
import org.sonar.api.batch.BatchSide;
+import org.sonar.api.ce.ComputeEngineSide;
import org.sonar.api.server.ServerSide;
import org.sonar.api.utils.TempFolder;
import org.sonar.classloader.ClassloaderBuilder;
@@ -47,6 +48,7 @@ import static org.sonar.classloader.ClassloaderBuilder.LoadingOrder.SELF_FIRST;
*/
@BatchSide
@ServerSide
+@ComputeEngineSide
public class PluginClassloaderFactory {
// underscores are used to not conflict with plugin keys (if someday a plugin key is "api")
diff --git a/sonar-core/src/main/java/org/sonar/core/platform/PluginRepository.java b/sonar-core/src/main/java/org/sonar/core/platform/PluginRepository.java
index 9f302ac81f7..f90c2881f43 100644
--- a/sonar-core/src/main/java/org/sonar/core/platform/PluginRepository.java
+++ b/sonar-core/src/main/java/org/sonar/core/platform/PluginRepository.java
@@ -22,6 +22,7 @@ package org.sonar.core.platform;
import java.util.Collection;
import org.sonar.api.Plugin;
import org.sonar.api.batch.BatchSide;
+import org.sonar.api.ce.ComputeEngineSide;
import org.sonar.api.server.ServerSide;
/**
@@ -29,6 +30,7 @@ import org.sonar.api.server.ServerSide;
*/
@BatchSide
@ServerSide
+@ComputeEngineSide
public interface PluginRepository {
Collection<PluginInfo> getPluginInfos();