public abstract class Configuration<T extends Configuration<T>> extends Object
| Constructor and Description |
|---|
Configuration() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getConfiguration() |
String |
getProperty(String name,
String defaultValue)
Gets value of
name property. |
Configuration<T> |
setConfiguration(Map<String,String> configuration)
Gets configuration from Arquillian descriptor and creates instance of it.
|
void |
setProperty(String name,
String value)
Sets some property.
|
abstract void |
validate()
Validates configuration.
|
public Configuration<T> setConfiguration(Map<String,String> configuration)
configuration - configuration of extension from arquillian.xmlIllegalArgumentException - if configuration is a null objectpublic Map<String,String> getConfiguration()
public String getProperty(String name, String defaultValue) throws IllegalStateException
name property. In case a value for such name does not exist or is a null object or an empty string,
defaultValue is returned.name - name of a property you want to get the value ofdefaultValue - value returned in case name is a null string or it is emptyname property of defaultValue when name is null or empty stringIllegalArgumentException - if name is a null object or an empty string or if defaultValue is a null
objectIllegalStateExceptionpublic void setProperty(String name, String value)
name - acts as a keyvalue - value assigned to the name keyIllegalArgumentException - if name is null or empty or value is nullpublic abstract void validate()
throws RecorderConfigurationException
RecorderConfigurationException - when configuration of an extension is not validCopyright © 2014–2015 JBoss by Red Hat. All rights reserved.