aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2015-07-27 17:39:34 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2015-07-28 11:54:49 +0200
commit70c24eb376e514098f228bef76194536995c4957 (patch)
treed19d358e6ff39a23835dd7836fdbfbac448f2636 /sonar-plugin-api/src
parent1d155007f27ffaee6617cc2fd0cd41d7dcb0bff9 (diff)
downloadsonarqube-70c24eb376e514098f228bef76194536995c4957.tar.gz
sonarqube-70c24eb376e514098f228bef76194536995c4957.zip
SONAR-6746 Drop Plugin interface + batch cleanup
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/Plugin.java64
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/SonarPlugin.java22
2 files changed, 7 insertions, 79 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/Plugin.java b/sonar-plugin-api/src/main/java/org/sonar/api/Plugin.java
deleted file mode 100644
index 23f5021d3fb..00000000000
--- a/sonar-plugin-api/src/main/java/org/sonar/api/Plugin.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * SonarQube, open source software quality management tool.
- * Copyright (C) 2008-2014 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * SonarQube 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.
- *
- * SonarQube 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 this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-package org.sonar.api;
-
-import java.util.List;
-
-/**
- * A plugin is a group of extensions. See <code>org.sonar.api.Extension</code> interface to browse
- * available extension points.
- * <p>The manifest property <code>Plugin-Class</code> must declare the name of the implementation class.
- * It is automatically set by sonar-packaging-maven-plugin when building plugins.</p>
- * <p>Implementation must declare a public constructor with no-parameters.</p>
- *
- * @see org.sonar.api.Extension
- * @since 1.10
- * @deprecated in 2.8. Use {@link SonarPlugin} instead.
- */
-@Deprecated
-public interface Plugin {
-
- /**
- * Unique key within sonar plugins
- * @deprecated since 2.2. The key must be set in the manifest.
- */
- @Deprecated
- String getKey();
-
- /**
- * Descriptive name
- * @deprecated since 2.2. The name must be set in the manifest.
- */
- @Deprecated
- String getName();
-
- /**
- * description of the plugin, can contains html or ruby code
- * @deprecated since 2.2. The description must be set in the manifest.
- */
- @Deprecated
- String getDescription();
-
- /**
- * Classes of the implemented extensions.
- */
- List getExtensions();
-
-}
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/SonarPlugin.java b/sonar-plugin-api/src/main/java/org/sonar/api/SonarPlugin.java
index 31f2f349abe..6253c7a4cc0 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/SonarPlugin.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/SonarPlugin.java
@@ -19,6 +19,8 @@
*/
package org.sonar.api;
+import java.util.List;
+
/**
* Plugin entry-point used to declare its extensions (see {@link org.sonar.api.Extension}.
* <p/>
@@ -27,22 +29,12 @@ package org.sonar.api;
*
* @since 2.8
*/
-public abstract class SonarPlugin implements Plugin {
-
- @Override
- public final String getKey() {
- throw new UnsupportedOperationException();
- }
+public abstract class SonarPlugin {
- @Override
- public final String getName() {
- throw new UnsupportedOperationException();
- }
-
- @Override
- public final String getDescription() {
- throw new UnsupportedOperationException();
- }
+ /**
+ * Classes of the implemented extensions.
+ */
+ public abstract List getExtensions();
/**
* Returns a string representation of the plugin, suitable for debugging purposes only.