]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4386 Provide a context to ProjectBuilder for later evolutions
authorJulien HENRY <julien.henry@sonarsource.com>
Wed, 12 Jun 2013 15:34:50 +0000 (17:34 +0200)
committerJulien HENRY <julien.henry@sonarsource.com>
Wed, 12 Jun 2013 15:35:20 +0000 (17:35 +0200)
sonar-plugin-api/src/main/java/org/sonar/api/batch/bootstrap/ProjectBuilderContext.java [new file with mode: 0644]

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 (file)
index 0000000..82a2b19
--- /dev/null
@@ -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();
+
+}