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 |
protected boolean |
configFileLoaded
is the configuration file loaded |
protected java.lang.String |
configFileName
configuration file name |
protected java.util.Properties |
fileConfigVars
Configuration variables retrieved from file |
Method Summary |
java.lang.String |
getConfigVar(java.lang.String key)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fileConfigVars
protected java.util.Properties fileConfigVars
- Configuration variables retrieved from file
configFileName
protected java.lang.String configFileName
- configuration file name
configFileLoaded
protected boolean configFileLoaded
- is the configuration file loaded
FileConfigVarManager
public FileConfigVarManager()
- Constructor
FileConfigVarManager
public FileConfigVarManager(java.lang.String configFileName)
- Parameters:
configFileName
- the configuration file name
getConfigVar
public java.lang.String getConfigVar(java.lang.String key)
- Overrides:
getConfigVar
in class SystemConfigVarManager
- Parameters:
key
- the configuration variable name
- Returns:
- The value for the configuration variable. null if it is not set.
Copyright © 2008 Actuate Corp. All rights reserved.