org.pentaho.test.platform.engine.core
Class XmlSimpleSystemSettings
java.lang.Object
org.pentaho.platform.engine.core.system.PentahoBase
org.pentaho.platform.engine.core.system.SystemSettings
org.pentaho.test.platform.engine.core.XmlSimpleSystemSettings
- All Implemented Interfaces:
- Serializable, ILogger, ISystemSettings
public class XmlSimpleSystemSettings
- extends SystemSettings
This settings class allows you to initialize the MicroPlatform with the
xml based SystemSettings class, and bootstrap successfully.
- Author:
- GMoran
- See Also:
- Serialized Form
Fields inherited from interface org.pentaho.platform.api.engine.ILogger |
ACTIVITY_LOG, DEBUG, ERROR, FATAL, INFO, INSTANCE_LOG, SESSION_LOG, SOLUTION_LOG, TRACE, UNKNOWN, WARN |
Methods inherited from class org.pentaho.platform.engine.core.system.PentahoBase |
debug, debug, error, error, fatal, fatal, genLogIdFromInfo, genLogIdFromInfo, genLogIdFromSession, getLoggingLevel, getLogId, getObjectName, info, info, setLoggingLevel, setLogId, trace, trace, warn, warn |
XmlSimpleSystemSettings
public XmlSimpleSystemSettings()
getSystemSettings
public List getSystemSettings(String path,
String settingName)
- Description copied from interface:
ISystemSettings
- Gets a section from the specified settings document
- Specified by:
getSystemSettings
in interface ISystemSettings
- Overrides:
getSystemSettings
in class SystemSettings
- Parameters:
path
- relative to the system directory, go to this documentsettingName
- the section is the document to retrieve
- Returns:
- the list of settings in the specified section of the document
getSystemSetting
public String getSystemSetting(String settingName,
String defaultValue)
- Description copied from interface:
ISystemSettings
- Gets a system setting from the system configuration file
- Specified by:
getSystemSetting
in interface ISystemSettings
- Overrides:
getSystemSetting
in class SystemSettings
- Parameters:
settingName
- the setting name to getdefaultValue
- the value to use if the setting isn't specified in the setting
document
- Returns:
- the setting requested, or the default value if not found