diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2014-06-10 00:41:17 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2014-06-10 12:36:11 +0200 |
commit | 9decc5bd48352c1fb9fceca9de8b7eca654fd0bf (patch) | |
tree | 0e95b2362e21f63347679e33ebefe8186ea58739 /sonar-batch/src/main/java/org/sonar/batch/bootstrap/PluginsReferential.java | |
parent | da92c49827337bd34fbf077d5d74c9fbfb8ec287 (diff) | |
download | sonarqube-9decc5bd48352c1fb9fceca9de8b7eca654fd0bf.tar.gz sonarqube-9decc5bd48352c1fb9fceca9de8b7eca654fd0bf.zip |
SONAR-5389 Initial version of the new sensor mode
Diffstat (limited to 'sonar-batch/src/main/java/org/sonar/batch/bootstrap/PluginsReferential.java')
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/bootstrap/PluginsReferential.java | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/PluginsReferential.java b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/PluginsReferential.java new file mode 100644 index 00000000000..daf38ae7abf --- /dev/null +++ b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/PluginsReferential.java @@ -0,0 +1,43 @@ +/* + * 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.batch.bootstrap; + +import org.sonar.core.plugins.RemotePlugin; + +import java.io.File; +import java.util.List; + +/** + * Plugin referential. + * @since 4.4 + */ +public interface PluginsReferential { + + /** + * Return list of plugins to be installed + */ + List<RemotePlugin> pluginList(); + + /** + * Return location of a given plugin on the local FS. + */ + File pluginFile(RemotePlugin remote); + +} |