org.sonar.batch.bootstrapper
Class Bootstrapper

java.lang.Object
  extended by org.sonar.batch.bootstrapper.Bootstrapper

public class Bootstrapper
extends Object


Field Summary
static int CONNECT_TIMEOUT_MILLISECONDS
           
static int READ_TIMEOUT_MILLISECONDS
           
 
Constructor Summary
Bootstrapper(String productToken, String serverUrl, File workDir)
           
 
Method Summary
 BootstrapClassLoader createClassLoader(URL[] urls, ClassLoader parent, String... unmaskedPackages)
          Download batch files from server and creates BootstrapClassLoader.
 String getServerUrl()
           
 String getServerVersion()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONNECT_TIMEOUT_MILLISECONDS

public static final int CONNECT_TIMEOUT_MILLISECONDS
See Also:
Constant Field Values

READ_TIMEOUT_MILLISECONDS

public static final int READ_TIMEOUT_MILLISECONDS
See Also:
Constant Field Values
Constructor Detail

Bootstrapper

public Bootstrapper(String productToken,
                    String serverUrl,
                    File workDir)
Parameters:
productToken - part of User-Agent request-header field - see http://tools.ietf.org/html/rfc1945#section-10.15
Method Detail

getServerUrl

public String getServerUrl()
Returns:
server url

getServerVersion

public String getServerVersion()
Returns:
server version

createClassLoader

public BootstrapClassLoader createClassLoader(URL[] urls,
                                              ClassLoader parent,
                                              String... unmaskedPackages)
Download batch files from server and creates BootstrapClassLoader. To use this method version of Sonar should be at least 2.6.

Parameters:
urls - additional URLs for loading classes and resources
parent - parent ClassLoader
unmaskedPackages - only classes and resources from those packages would be available for loading from parent


Copyright © 2009-2012 SonarSource. All Rights Reserved.