public abstract class Configuration 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 |
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 setConfiguration(Map<String,String> configuration)
configuration
- configuration of extension from arquillian.xmlIllegalArgumentException
- if configuration
is a null objectpublic 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
objectIllegalStateException
public void setProperty(String name, String value)
name
- acts as a keyvalue
- IllegalArgumentException
- if name
is null or empty or value
is nullpublic abstract void validate() throws GovernorConfigurationException
GovernorConfigurationException
- when configuration of the extension is not validCopyright © 2015–2016 JBoss by Red Hat. All rights reserved.