Package org.eclipse.birt.core.config
Class SystemConfigVarManager
java.lang.Object
org.eclipse.birt.core.config.SystemConfigVarManager
- Direct Known Subclasses:
FileConfigVarManager
Implements a default config variable manager using System support
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetConfigBoolean(String key) getConfigInteger(String key) intgetConfigInteger(String key, int defaultValue) getConfigVar(String key) getConfigVar(String key, String defaultValue)
-
Constructor Details
-
SystemConfigVarManager
public SystemConfigVarManager()Constructor
-
-
Method Details
-
getConfigVar
- Parameters:
key- the configuration variable name- Returns:
- The value for the configuration variable. null if it is not set.
-
getConfigVar
- Parameters:
key- the configuration variable namedefaultValue- returns this value is the configuration variable is not set- Returns:
- The value for the configuration variable. In case the config var is not set, or there is an exception, defaultValue is returned.
-
getConfigBoolean
- Parameters:
key- the configuration variable name- Returns:
- true if set to true (case insensitive), false in any other cases
-
getConfigInteger
- Parameters:
key- the configuration variable name- Returns:
- the value for the configuration variable. returns null if the config var is not set or not set to an integer or any other exception happens.
-
getConfigInteger
- Parameters:
key- the configuration variable namedefaultValue- returns this value is the configuration variable is not set- Returns:
- the value for the configuration variable. In case the config var is not set, or not set to a number, or there is an exception, defaultValue is returned.
-