From ec5d0970b0a6b290c5690be86f2b369391c84cdf Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Wed, 12 Jun 2013 17:34:50 +0200 Subject: [PATCH] SONAR-4386 Provide a context to ProjectBuilder for later evolutions --- .../bootstrap/ProjectBuilderContext.java | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 sonar-plugin-api/src/main/java/org/sonar/api/batch/bootstrap/ProjectBuilderContext.java diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/bootstrap/ProjectBuilderContext.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/bootstrap/ProjectBuilderContext.java new file mode 100644 index 00000000000..82a2b199847 --- /dev/null +++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/bootstrap/ProjectBuilderContext.java @@ -0,0 +1,36 @@ +/* + * 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; + + +/** + * Context that is passed to {@link ProjectBuilder} as parameter + * + * @since 3.7 + */ +public interface ProjectBuilderContext { + + /** + * Get the current project reactor. It is allowed to modify project reactor inside the + * {@link ProjectBuilder#build(ProjectReactor)} method. + */ + ProjectReactor getProjectReactor(); + +} -- 2.39.5