Class Configurable<T extends AbstractConfiguration<?>>
- java.lang.Object
-
- dev.aherscu.qa.testing.utils.config.Configurable<T>
-
- Type Parameters:
T
- configuration type
public class Configurable<T extends AbstractConfiguration<?>> extends Object
Base class for all things that useAbstractConfiguration
.- Author:
- aherscu
-
-
Field Summary
Fields Modifier and Type Field Description protected T
configuration
The configuration to use.
-
Constructor Summary
Constructors Modifier Constructor Description protected
Configurable(T configuration)
Sets up configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
resolved(String value)
Resolves a value according to configured definitions.
-
-
-
Field Detail
-
configuration
protected final T extends AbstractConfiguration<?> configuration
The configuration to use.
-
-
Constructor Detail
-
Configurable
protected Configurable(T configuration)
Sets up configuration.- Parameters:
configuration
- the configuration; if null, operations requiring configuration will fail
-
-
Method Detail
-
resolved
protected String resolved(String value)
Resolves a value according to configured definitions.- Parameters:
value
- the value to resolve definitions references within- Returns:
- the resolved value
- Throws:
NullPointerException
- if there is no configuration
-
-