diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2016-07-04 11:09:39 +0200 |
---|---|---|
committer | Duarte Meneses <duarte.meneses@sonarsource.com> | 2016-07-04 14:14:40 +0200 |
commit | 2eedbcc8b76ca3565e30e64c1413f4aeba903b34 (patch) | |
tree | 9501d7da2c8764a309de7084585d50a503b19159 /sonar-scanner-engine/src/main/java/org/sonar/batch/bootstrap/ExtensionUtils.java | |
parent | 49cbc42b322e562807add4faaebd649445ee1bce (diff) | |
download | sonarqube-2eedbcc8b76ca3565e30e64c1413f4aeba903b34.tar.gz sonarqube-2eedbcc8b76ca3565e30e64c1413f4aeba903b34.zip |
SONAR-7665 Deprecate @BatchSide and introduce @ScannerSide
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.java | 8 |
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) { |