java.lang.Object | +--com.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)
key
- name of a nodepublic java.lang.String getConfigFileName()
public static javax.servlet.ServletContext getServletContext()
public void initialize(java.lang.String filename) throws java.lang.Exception
filename
- configuration file namejava.lang.Exception
public void setConfigCache(java.lang.String key, org.w3c.dom.Node value)
key
- name of nodevalue
- the dom nodepublic void setConfigFileName(java.lang.String fileName)
fileName
- name of configuration filepublic static void setServletContext(javax.servlet.ServletContext val)
val
- servlet contextpublic static ServerConfiguration singleton()