java.lang.Objectcom.ibm.commerce.server.ServerConfiguration
This class reads the xml configuration file in and holds all the configuration node the server needs to operatate on.
Field Summary | |
java.util.Hashtable | configCache The default value for the configuration cache. |
org.w3c.dom.Node | configDOMTree The default value for the configuration DOM tree. |
static java.lang.String | COPYRIGHT IBM copyright notice field. |
static javax.servlet.ServletContext | servletContext The default value for the servlet context. |
Method Summary | |
org.w3c.dom.Node | getConfigCache(java.lang.String key) Returns a node with the given name. |
java.lang.String | getConfigFileName() Gets the name of the configuration file. |
static javax.servlet.ServletContext | getServletContext() Gets the servlet context. |
void | initialize(java.lang.String filename) Initializes the config cache. |
void | setConfigCache(java.lang.String key, org.w3c.dom.Node value) Adds the node to the cache. |
void | setConfigFileName(java.lang.String fileName) Sets the configuration file name. |
static void | setServletContext(javax.servlet.ServletContext val) Sets the servlet context. |
static ServerConfiguration | singleton() Returns a singleton instance of this class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String COPYRIGHT
public org.w3c.dom.Node configDOMTree
public java.util.Hashtable configCache
public static javax.servlet.ServletContext servletContext
Method Detail |
public org.w3c.dom.Node getConfigCache(java.lang.String key)
public java.lang.String getConfigFileName()
public static javax.servlet.ServletContext getServletContext()
public void initialize(java.lang.String filename) throws java.lang.Exception
public void setConfigCache(java.lang.String key, org.w3c.dom.Node value)
public void setConfigFileName(java.lang.String fileName)
public static void setServletContext(javax.servlet.ServletContext val)
public static ServerConfiguration singleton()
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.