org.sandev.basics.nodecommon
Class ConfigUtil

java.lang.Object
  extended by org.sandev.basics.nodecommon.ConfigUtil

public class ConfigUtil
extends java.lang.Object

Simplified access to Configuration information. Requires access to the root node.


Constructor Summary
ConfigUtil()
           
 
Method Summary
static java.lang.String getGlobalParam(java.lang.String name, java.lang.String defaultVal, SandRoot root)
          Return the value of the given global parameter if found, otherwise return the given default value.
static SimpleMailSender initSimpleMailSender(SandRoot root, Logger logger)
          Init a SimpleMailSender instance and return it, or throw if anything goes wrong.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigUtil

public ConfigUtil()
Method Detail

getGlobalParam

public static java.lang.String getGlobalParam(java.lang.String name,
                                              java.lang.String defaultVal,
                                              SandRoot root)
Return the value of the given global parameter if found, otherwise return the given default value.


initSimpleMailSender

public static SimpleMailSender initSimpleMailSender(SandRoot root,
                                                    Logger logger)
                                             throws SandException
Init a SimpleMailSender instance and return it, or throw if anything goes wrong. This method reflectively instantiates an instance based on the following global config values:

Throws:
SandException