aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2014-03-16 14:06:00 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2014-03-16 14:06:00 +0100
commitf2b39ccc3223c71b741b443ebc36999352958080 (patch)
treec874fd18660f31f0f507519864cdf9e43ce8d51e /sonar-plugin-api/src
parent568969fea6803e47f28a85459c2053ca377f0b87 (diff)
downloadsonarqube-f2b39ccc3223c71b741b443ebc36999352958080.tar.gz
sonarqube-f2b39ccc3223c71b741b443ebc36999352958080.zip
Refactor plugin management for better maintainability
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/platform/PluginRepository.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/platform/PluginRepository.java b/sonar-plugin-api/src/main/java/org/sonar/api/platform/PluginRepository.java
index b40320dadcd..ad26ec2dae3 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/platform/PluginRepository.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/platform/PluginRepository.java
@@ -23,9 +23,11 @@ import org.sonar.api.BatchComponent;
import org.sonar.api.Plugin;
import org.sonar.api.ServerComponent;
+import javax.annotation.CheckForNull;
import java.util.Collection;
public interface PluginRepository extends BatchComponent, ServerComponent {
+ @CheckForNull
Plugin getPlugin(String key);
/**
@@ -41,5 +43,6 @@ public interface PluginRepository extends BatchComponent, ServerComponent {
* Search for an installed plugin. Returns null if the plugin is not installed.
* @since 2.9
*/
+ @CheckForNull
PluginMetadata getMetadata(String pluginKey);
}