org.pentaho.test.platform.engine.core
Class XmlSimpleSystemSettings

java.lang.Object
  extended by org.pentaho.platform.engine.core.system.PentahoBase
      extended by org.pentaho.platform.engine.core.system.SystemSettings
          extended by 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

Field Summary
 
Fields inherited from class org.pentaho.platform.engine.core.system.SystemSettings
PENTAHOSETTINGSFILENAME
 
Fields inherited from class org.pentaho.platform.engine.core.system.PentahoBase
EMPTYLOGID, LOGID_MASK1, LOGID_MASK2, LOGID_SEPARATOR
 
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
 
Constructor Summary
XmlSimpleSystemSettings()
           
 
Method Summary
 String getSystemSetting(String settingName, String defaultValue)
          Gets a system setting from the system configuration file
 List getSystemSettings(String path, String settingName)
          Gets a section from the specified settings document
 
Methods inherited from class org.pentaho.platform.engine.core.system.SystemSettings
getLogger, getSettingsDocumentFromFile, getSystemCfgSourceName, getSystemSetting, getSystemSettings, getSystemSettingsDocument, getSystemSettingsProperties, resetSettingsCache
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlSimpleSystemSettings

public XmlSimpleSystemSettings()
Method Detail

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 document
settingName - 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 get
defaultValue - 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