aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src/main/java/org/sonar/api/task
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2016-07-04 11:09:39 +0200
committerDuarte Meneses <duarte.meneses@sonarsource.com>2016-07-04 14:14:40 +0200
commit2eedbcc8b76ca3565e30e64c1413f4aeba903b34 (patch)
tree9501d7da2c8764a309de7084585d50a503b19159 /sonar-plugin-api/src/main/java/org/sonar/api/task
parent49cbc42b322e562807add4faaebd649445ee1bce (diff)
downloadsonarqube-2eedbcc8b76ca3565e30e64c1413f4aeba903b34.tar.gz
sonarqube-2eedbcc8b76ca3565e30e64c1413f4aeba903b34.zip
SONAR-7665 Deprecate @BatchSide and introduce @ScannerSide
Diffstat (limited to 'sonar-plugin-api/src/main/java/org/sonar/api/task')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/task/Task.java4
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/task/TaskComponent.java6
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/task/TaskDefinition.java4
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/task/TaskExtension.java4
4 files changed, 9 insertions, 9 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/task/Task.java b/sonar-plugin-api/src/main/java/org/sonar/api/task/Task.java
index 7a3a13e3453..c4975c41dd7 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/task/Task.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/task/Task.java
@@ -19,14 +19,14 @@
*/
package org.sonar.api.task;
-import org.sonar.api.batch.BatchSide;
+import org.sonar.api.batch.ScannerSide;
import org.sonar.api.batch.InstantiationStrategy;
/**
* Implement this interface to provide the behavior of a task.
* @since 3.6
*/
-@BatchSide
+@ScannerSide
@InstantiationStrategy(InstantiationStrategy.PER_TASK)
public interface Task {
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/task/TaskComponent.java b/sonar-plugin-api/src/main/java/org/sonar/api/task/TaskComponent.java
index 1f5a68f1564..f825f92285f 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/task/TaskComponent.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/task/TaskComponent.java
@@ -19,17 +19,17 @@
*/
package org.sonar.api.task;
-import org.sonar.api.batch.BatchSide;
+import org.sonar.api.batch.ScannerSide;
import org.sonar.api.batch.InstantiationStrategy;
/**
* All the classes implementing this interface can be injected in public constructors of {@link TaskExtension}.
*
* @since 3.6
- * @deprecated since 5.1. Use {@link BatchSide} and {@link InstantiationStrategy#PER_TASK}
+ * @deprecated since 5.1. Use {@link ScannerSide} and {@link InstantiationStrategy#PER_TASK}
*/
@Deprecated
-@BatchSide
+@ScannerSide
@InstantiationStrategy(InstantiationStrategy.PER_TASK)
public interface TaskComponent {
}
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/task/TaskDefinition.java b/sonar-plugin-api/src/main/java/org/sonar/api/task/TaskDefinition.java
index 6075e1300ab..ff895a86df6 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/task/TaskDefinition.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/task/TaskDefinition.java
@@ -23,7 +23,7 @@ import com.google.common.base.Preconditions;
import com.google.common.base.Strings;
import java.util.regex.Pattern;
import org.sonar.api.ExtensionPoint;
-import org.sonar.api.batch.BatchSide;
+import org.sonar.api.batch.ScannerSide;
import org.sonar.api.batch.InstantiationStrategy;
/**
@@ -32,7 +32,7 @@ import org.sonar.api.batch.InstantiationStrategy;
* @since 3.6
*/
@ExtensionPoint
-@BatchSide
+@ScannerSide
@InstantiationStrategy(InstantiationStrategy.PER_TASK)
public class TaskDefinition implements Comparable<TaskDefinition> {
static final String KEY_PATTERN = "[a-zA-Z0-9\\-\\_]+";
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/task/TaskExtension.java b/sonar-plugin-api/src/main/java/org/sonar/api/task/TaskExtension.java
index 6a5aa783662..765e12c4cbb 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/task/TaskExtension.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/task/TaskExtension.java
@@ -19,7 +19,7 @@
*/
package org.sonar.api.task;
-import org.sonar.api.batch.BatchSide;
+import org.sonar.api.batch.ScannerSide;
import org.sonar.api.batch.InstantiationStrategy;
/**
@@ -29,7 +29,7 @@ import org.sonar.api.batch.InstantiationStrategy;
* @deprecated since 5.1. Not used.
*/
@Deprecated
-@BatchSide
+@ScannerSide
@InstantiationStrategy(InstantiationStrategy.PER_TASK)
public interface TaskExtension {
}