org.sonar.api.batch.bootstrap
Class ProjectBuilder

java.lang.Object
  extended by org.sonar.api.batch.bootstrap.ProjectBuilder
All Implemented Interfaces:
BatchComponent, BatchExtension, Extension

public abstract class ProjectBuilder
extends Object
implements BatchExtension

This extension point allows to change project structure at runtime. It is executed once during task startup. Some use-cases :

Since:
2.9

Nested Class Summary
static interface ProjectBuilder.Context
          Plugins can use the implementation ProjectBuilderContext for their unit tests.
 
Constructor Summary
protected ProjectBuilder()
           
protected ProjectBuilder(ProjectReactor reactor)
          Deprecated. since 3.7 use ProjectBuilder()
 
Method Summary
 void build(ProjectBuilder.Context context)
          Override this method to change project reactor structure.
protected  void build(ProjectReactor reactor)
          Deprecated. since 3.7 override build(Context) instead
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectBuilder

@Deprecated
protected ProjectBuilder(ProjectReactor reactor)
Deprecated. since 3.7 use ProjectBuilder()

Don't inject ProjectReactor as it may not be available


ProjectBuilder

protected ProjectBuilder()
Since:
3.7
Method Detail

build

public void build(ProjectBuilder.Context context)
Override this method to change project reactor structure.

Since:
3.7

build

@Deprecated
protected void build(ProjectReactor reactor)
Deprecated. since 3.7 override build(Context) instead



Copyright © 2009-2014 SonarSource. All Rights Reserved.