|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.lightest.core.Configuration
public class Configuration
| Field Summary | |
|---|---|
static String |
DEFAULT_ASSIGNMENT_STRATEGY
|
static String |
ROLE_FAILED_REPORTER
|
static String |
ROLE_PENDING_REPORTER
|
static String |
ROLE_XML_REPORTER
|
static List |
UNSPECIFIED_ENVS
|
static IPreferences |
UNSPECIFIED_PREFS
|
| Constructor Summary | |
|---|---|
Configuration()
|
|
Configuration(groovy.lang.GroovyShell shell)
|
|
Configuration(groovy.lang.GroovyShell shell,
groovy.lang.GroovyClassLoader classLoader)
|
|
Configuration(Map vars)
A convenience constructor for creating a Configuration object whose text is parsed with the given variables in scope. |
|
| Method Summary | |
|---|---|
protected void |
configureInstance(Object instance,
groovy.util.Node instanceConfig)
|
protected Object |
createConfiguredInstance(groovy.util.Node instanceConfig)
Returns a new instance of a class, as defined in a configuration node. |
protected ILightestReporter |
createConfiguredReporter(groovy.util.Node instanceConfig,
boolean isFailedReporter)
Returns a configured ILightestReporter. |
groovy.lang.GroovyClassLoader |
getClassLoader()
Returns the class loader used to load the configuration-related classes. |
List |
getClassPaths()
Returns a List of Strings representing class paths under which tasks and potentially environment and preference classes are defined. |
String |
getContextClass()
Returns the name of the class to be used as the context class. |
IDispatcherAssignmentStrategy |
getDispatcherAssignmentStrategy()
Returns the specified dispatcher assignment strategy. |
List |
getEnvironments()
Returns a List of ITestEnvironment instances. |
ILightestReporter |
getFailedReporter()
|
List |
getListeners()
Returns a list of listener instances to be registered directly with the TestNG runner. |
groovy.lang.MetaClass |
getMetaClass()
|
String |
getOutputDir()
Returns the output directory for the test run report. |
ILightestReporter |
getPendingReporter()
|
IPreferences |
getPreferences()
Returns an instance of the concrete implementation of IPreferences. |
Object |
getProperty(String name)
|
List |
getReporters()
Returns a list of reporter instances. |
ITaskDispatchStrategy |
getTaskDispatchStrategy()
Returns an instance of the ITaskDispatchStrategy implementation to use instead of whatever implementation is available by default. |
ILightestReporter |
getXMLReporter()
|
void |
init(String configText)
Initializes the configuration. |
Object |
invokeMethod(String name,
Object args)
|
protected groovy.util.Node |
parseConfig(String configText)
|
void |
setMetaClass(groovy.lang.MetaClass metaClass)
|
void |
setProperty(String name,
Object value)
|
void |
validate()
Determines if the specified configuration is a valid one. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final IPreferences UNSPECIFIED_PREFS
public static final List UNSPECIFIED_ENVS
public static final String ROLE_XML_REPORTER
public static final String ROLE_PENDING_REPORTER
public static final String ROLE_FAILED_REPORTER
public static final String DEFAULT_ASSIGNMENT_STRATEGY
| Constructor Detail |
|---|
public Configuration()
public Configuration(groovy.lang.GroovyShell shell)
public Configuration(Map vars)
vars - a Map of String's to Object's that will be used to
initialize a Binding object, and set on the GroovyShell
used to evaluate the configuration text.
public Configuration(groovy.lang.GroovyShell shell,
groovy.lang.GroovyClassLoader classLoader)
shell - the GroovyShell to be used to evaluate the
configuration textclassLoader - the class loader to use to load classes referenced
in the configuration text| Method Detail |
|---|
public void init(String configText)
configText - a text representation of the configuration to
initialize. See the Lightest documentation for the
format of this text.protected groovy.util.Node parseConfig(String configText)
public void validate()
protected Object createConfiguredInstance(groovy.util.Node instanceConfig)
instanceConfig -
protected void configureInstance(Object instance,
groovy.util.Node instanceConfig)
protected ILightestReporter createConfiguredReporter(groovy.util.Node instanceConfig,
boolean isFailedReporter)
public groovy.lang.GroovyClassLoader getClassLoader()
getClassLoader in interface IConfigurationpublic List getClassPaths()
getClassPaths in interface IConfigurationpublic String getOutputDir()
getOutputDir in interface IConfigurationpublic IPreferences getPreferences()
getPreferences in interface IConfigurationpublic List getEnvironments()
getEnvironments in interface IConfigurationpublic String getContextClass()
IConfiguration
getContextClass in interface IConfigurationpublic List getReporters()
IConfiguration
getReporters in interface IConfigurationpublic ILightestReporter getXMLReporter()
getXMLReporter in interface IConfigurationpublic ILightestReporter getPendingReporter()
getPendingReporter in interface IConfigurationpublic ILightestReporter getFailedReporter()
getFailedReporter in interface IConfigurationpublic List getListeners()
IConfigurationITestNGListener.
getListeners in interface IConfigurationpublic IDispatcherAssignmentStrategy getDispatcherAssignmentStrategy()
getDispatcherAssignmentStrategy in interface IConfigurationpublic ITaskDispatchStrategy getTaskDispatchStrategy()
IConfiguration
getTaskDispatchStrategy in interface IConfigurationpublic groovy.lang.MetaClass getMetaClass()
getMetaClass in interface groovy.lang.GroovyObjectpublic void setMetaClass(groovy.lang.MetaClass metaClass)
setMetaClass in interface groovy.lang.GroovyObject
public Object invokeMethod(String name,
Object args)
invokeMethod in interface groovy.lang.GroovyObjectpublic Object getProperty(String name)
getProperty in interface groovy.lang.GroovyObject
public void setProperty(String name,
Object value)
setProperty in interface groovy.lang.GroovyObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||