From 08ce13911a8cd0ee89184f98bcc07597d01ecf35 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Mon, 24 Jun 2013 11:53:07 +0200 Subject: SONAR-4433 New ProjectBootstrapper extension point --- .../api/batch/bootstrap/ProjectBootstrapper.java | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 sonar-plugin-api/src/main/java/org/sonar/api/batch/bootstrap/ProjectBootstrapper.java (limited to 'sonar-plugin-api/src') diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/bootstrap/ProjectBootstrapper.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/bootstrap/ProjectBootstrapper.java new file mode 100644 index 00000000000..bc90921ebdb --- /dev/null +++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/bootstrap/ProjectBootstrapper.java @@ -0,0 +1,45 @@ +/* + * SonarQube, open source software quality management tool. + * Copyright (C) 2008-2013 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.batch.bootstrap; + +import org.sonar.api.task.TaskExtension; + +/** + * This extension point allows to define project structure at runtime. It is executed once during task startup. + * Some use-cases : + * + * Only one ProjectBootstrapper is allowed per environement. + * + * @since 3.7 + */ +public abstract class ProjectBootstrapper implements TaskExtension { + + protected ProjectBootstrapper() { + } + + /** + * Implement this method to create project reactor + */ + public abstract ProjectReactor bootstrap(); + +} -- cgit v1.2.3