org.apache.maven.surefire.booter
Class StartupConfiguration

java.lang.Object
  extended by org.apache.maven.surefire.booter.StartupConfiguration

public class StartupConfiguration
extends Object

Configuration that is used by the SurefireStarter but does not make it into the provider itself.

Author:
Kristian Rosenvold

Constructor Summary
StartupConfiguration(String providerClassName, ClasspathConfiguration classpathConfiguration, ClassLoaderConfiguration classLoaderConfiguration, boolean isForkRequested, boolean inForkedVm)
           
 
Method Summary
 String getActualClassName()
           
 ClassLoaderConfiguration getClassLoaderConfiguration()
           
 ClasspathConfiguration getClasspathConfiguration()
           
 String getProviderClassName()
           
static StartupConfiguration inForkedVm(String providerClassName, ClasspathConfiguration classpathConfiguration, ClassLoaderConfiguration classLoaderConfiguration)
           
 boolean isManifestOnlyJarRequestedAndUsable()
           
 boolean isProviderMainClass()
           
 boolean isShadefire()
           
static String stripEnd(String str, String strip)
          Strip any of a supplied String from the end of a String.
 boolean useSystemClassLoader()
           
 void writeSurefireTestClasspathProperty()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StartupConfiguration

public StartupConfiguration(String providerClassName,
                            ClasspathConfiguration classpathConfiguration,
                            ClassLoaderConfiguration classLoaderConfiguration,
                            boolean isForkRequested,
                            boolean inForkedVm)
Method Detail

isProviderMainClass

public boolean isProviderMainClass()

inForkedVm

public static StartupConfiguration inForkedVm(String providerClassName,
                                              ClasspathConfiguration classpathConfiguration,
                                              ClassLoaderConfiguration classLoaderConfiguration)

getClasspathConfiguration

public ClasspathConfiguration getClasspathConfiguration()

useSystemClassLoader

public boolean useSystemClassLoader()

isManifestOnlyJarRequestedAndUsable

public boolean isManifestOnlyJarRequestedAndUsable()

getProviderClassName

public String getProviderClassName()

getActualClassName

public String getActualClassName()

stripEnd

public static String stripEnd(String str,
                              String strip)

Strip any of a supplied String from the end of a String.

If the strip String is null, whitespace is stripped.

Parameters:
str - the String to remove characters from
strip - the String to remove
Returns:
the stripped String

getClassLoaderConfiguration

public ClassLoaderConfiguration getClassLoaderConfiguration()

isShadefire

public boolean isShadefire()

writeSurefireTestClasspathProperty

public void writeSurefireTestClasspathProperty()


Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.