diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2013-01-17 08:56:47 +0100 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2013-01-17 08:56:47 +0100 |
commit | 601cfaa3b3d3aa48866ea860cf0186052aa90e07 (patch) | |
tree | 03224f48aa405accb4833868ddc08f8d179f0ef2 /sonar-plugin-api/src/main/java/org/sonar/api/task | |
parent | af572a416fdc8d2a4de4c9162224cf568a56f1e3 (diff) | |
download | sonarqube-601cfaa3b3d3aa48866ea860cf0186052aa90e07.tar.gz sonarqube-601cfaa3b3d3aa48866ea860cf0186052aa90e07.zip |
SONAR-4069 Move task related interface in task package
Diffstat (limited to 'sonar-plugin-api/src/main/java/org/sonar/api/task')
5 files changed, 89 insertions, 2 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 1f112f8f5cf..42bfdddcaac 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,7 +19,6 @@ */ package org.sonar.api.task; -import org.sonar.api.TaskExtension; /** * Implement this interface to provide the behavior of a 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 new file mode 100644 index 00000000000..346b8bcf351 --- /dev/null +++ b/sonar-plugin-api/src/main/java/org/sonar/api/task/TaskComponent.java @@ -0,0 +1,29 @@ +/* + * Sonar, open source software quality management tool. + * Copyright (C) 2008-2012 SonarSource + * mailto:contact AT sonarsource DOT com + * + * Sonar is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * Sonar is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with Sonar; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 + */ +package org.sonar.api.task; + +/** + * Dependency Injection : all the classes implementing this interface are available in the task IoC container. + * Just add a parameter to the constructor of your component. + * + * @since 3.5 + */ +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 75f48b670b0..897831cc914 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 @@ -19,7 +19,6 @@ */ package org.sonar.api.task; -import org.sonar.api.TaskDefinitionExtension; /** * Implement this interface to provide a new task. diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/task/TaskDefinitionExtension.java b/sonar-plugin-api/src/main/java/org/sonar/api/task/TaskDefinitionExtension.java new file mode 100644 index 00000000000..0bf358384f1 --- /dev/null +++ b/sonar-plugin-api/src/main/java/org/sonar/api/task/TaskDefinitionExtension.java @@ -0,0 +1,30 @@ +/* + * Sonar, open source software quality management tool. + * Copyright (C) 2008-2012 SonarSource + * mailto:contact AT sonarsource DOT com + * + * Sonar is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * Sonar is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with Sonar; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 + */ +package org.sonar.api.task; + +import org.sonar.api.Extension; + +/** + * Task definition extension point. + * + * @since 3.5 + */ +public interface TaskDefinitionExtension extends Extension { +} 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 new file mode 100644 index 00000000000..92c3c7230de --- /dev/null +++ b/sonar-plugin-api/src/main/java/org/sonar/api/task/TaskExtension.java @@ -0,0 +1,30 @@ +/* + * Sonar, open source software quality management tool. + * Copyright (C) 2008-2012 SonarSource + * mailto:contact AT sonarsource DOT com + * + * Sonar is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * Sonar is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with Sonar; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 + */ +package org.sonar.api.task; + +import org.sonar.api.Extension; + +/** + * Task extension point. + * + * @since 3.5 + */ +public interface TaskExtension extends Extension, TaskComponent { +} |