Package org.eclipse.birt.core.config
Class FileConfigVarManager
- java.lang.Object
-
- org.eclipse.birt.core.config.SystemConfigVarManager
-
- org.eclipse.birt.core.config.FileConfigVarManager
-
public class FileConfigVarManager extends SystemConfigVarManager
Defines a configuration manager class that loads configuration variables from a file. In case the file does not contain a specified config var, the system config var manager is used as backup.
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanconfigFileLoadedis the configuration file loadedprotected java.lang.StringconfigFileNameconfiguration file nameprotected java.util.PropertiesfileConfigVarsConfiguration variables retrieved from file
-
Constructor Summary
Constructors Constructor Description FileConfigVarManager()ConstructorFileConfigVarManager(java.lang.String configFileName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetConfigVar(java.lang.String key)-
Methods inherited from class org.eclipse.birt.core.config.SystemConfigVarManager
getConfigBoolean, getConfigInteger, getConfigInteger, getConfigVar
-
-
-
-
Method Detail
-
getConfigVar
public java.lang.String getConfigVar(java.lang.String key)
- Overrides:
getConfigVarin classSystemConfigVarManager- Parameters:
key- the configuration variable name- Returns:
- The value for the configuration variable. null if it is not set.
-
-