aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine/src/main/java/org/sonar/batch/bootstrap/ExtensionUtils.java
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-scanner-engine/src/main/java/org/sonar/batch/bootstrap/ExtensionUtils.java')
-rw-r--r--sonar-scanner-engine/src/main/java/org/sonar/batch/bootstrap/ExtensionUtils.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/batch/bootstrap/ExtensionUtils.java b/sonar-scanner-engine/src/main/java/org/sonar/batch/bootstrap/ExtensionUtils.java
index adf16a40315..9d6882420f6 100644
--- a/sonar-scanner-engine/src/main/java/org/sonar/batch/bootstrap/ExtensionUtils.java
+++ b/sonar-scanner-engine/src/main/java/org/sonar/batch/bootstrap/ExtensionUtils.java
@@ -21,6 +21,7 @@ package org.sonar.batch.bootstrap;
import org.sonar.api.batch.BatchSide;
import org.sonar.api.batch.InstantiationStrategy;
+import org.sonar.api.batch.ScannerSide;
import org.sonar.api.utils.AnnotationUtils;
public class ExtensionUtils {
@@ -36,9 +37,10 @@ public class ExtensionUtils {
}
return InstantiationStrategy.PER_PROJECT.equals(strategy);
}
-
- public static boolean isBatchSide(Object extension) {
- return AnnotationUtils.getAnnotation(extension, BatchSide.class) != null;
+
+ public static boolean isScannerSide(Object extension) {
+ return AnnotationUtils.getAnnotation(extension, BatchSide.class) != null ||
+ AnnotationUtils.getAnnotation(extension, ScannerSide.class) != null;
}
public static boolean isType(Object extension, Class<?> extensionClass) {