org.sonar.batch.bootstrapper
Class Batch.Builder

java.lang.Object
  extended by org.sonar.batch.bootstrapper.Batch.Builder
Enclosing class:
Batch

public static final class Batch.Builder
extends Object


Method Summary
 Batch.Builder addComponent(Object component)
           
 Batch.Builder addComponents(Object... components)
           
 Batch build()
           
 boolean isEnableLoggingConfiguration()
           
 Batch.Builder setBootstrapProperties(Map<String,String> bootstrapProperties)
           
 Batch.Builder setComponents(List<Object> l)
           
 Batch.Builder setEnableLoggingConfiguration(boolean b)
          Logback is configured by default.
 Batch.Builder setEnvironment(EnvironmentInformation env)
           
 Batch.Builder setGlobalProperties(Map<String,String> globalProperties)
          Deprecated. since 3.7 use setBootstrapProperties(Map)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setEnvironment

public Batch.Builder setEnvironment(EnvironmentInformation env)

setComponents

public Batch.Builder setComponents(List<Object> l)

setGlobalProperties

@Deprecated
public Batch.Builder setGlobalProperties(Map<String,String> globalProperties)
Deprecated. since 3.7 use setBootstrapProperties(Map)


setBootstrapProperties

public Batch.Builder setBootstrapProperties(Map<String,String> bootstrapProperties)

addComponents

public Batch.Builder addComponents(Object... components)

addComponent

public Batch.Builder addComponent(Object component)

isEnableLoggingConfiguration

public boolean isEnableLoggingConfiguration()

setEnableLoggingConfiguration

public Batch.Builder setEnableLoggingConfiguration(boolean b)
Logback is configured by default. It can be disabled, but n this case the batch bootstrapper must provide its own implementation of SLF4J.


build

public Batch build()


Copyright © 2009–2015 SonarSource. All rights reserved.