public abstract class PropertyProvider
extends java.lang.Object
This class may be extended to reflect specific requirements (that is specific global properties) needed by a configuration manager.
This class parses the following properties from the designated map (in parentheses the default value that will apply if the property is not set):
./logs)./examples)./lib)false)| Modifier and Type | Field and Description |
|---|---|
protected java.util.logging.Logger |
logger
The logger for property providers.
|
| Modifier | Constructor and Description |
|---|---|
protected |
PropertyProvider(java.util.Map<java.lang.String,java.lang.String> properties)
Creates a new
PropertyProvider and parses all corresponding
global properties from the designated map and/or sets the properties
appropriately. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.String> |
getSubstitutedVariables()
Gets an unmodifiable map containing all substitutions (interpolation) that
need to be applied to all configurations.
|
boolean |
getUseSunSecurityProviders()
Gets whether the Sun providers should be used for the security API.
|
protected void |
initialiseProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Initialises, checks and sets the values of the global properties as well as
the substituted variables.
|
protected final java.util.logging.Logger logger
protected PropertyProvider(java.util.Map<java.lang.String,java.lang.String> properties)
throws ConfigurationException
PropertyProvider and parses all corresponding
global properties from the designated map and/or sets the properties
appropriately.properties - A map providing all required global properties and values
for substituted variables.ConfigurationException - If there are problems retrieving a required
global property or a substituted variables from the designated
map, a ConfigurationException will be thrown.public java.util.Map<java.lang.String,java.lang.String> getSubstitutedVariables()
${arflow:key} will be replaced by value.public boolean getUseSunSecurityProviders()
protected void initialiseProperties(java.util.Map<java.lang.String,java.lang.String> properties)
throws ConfigurationException
./logs)./examples)./lib)false)./logs)./examples)./lib)properties - The properties which to parse.ConfigurationException - If the user dir for the log dir is not a
valid directory or the default data directory could not be
created, a ConfigurationException will be thrown.