|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
|
org.w3c.dom.Node |
configDOMTree
|
static javax.servlet.ServletContext |
servletContext
|
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 java.util.Hashtable configCache
public org.w3c.dom.Node configDOMTree
public static javax.servlet.ServletContext servletContext
Method Detail |
public org.w3c.dom.Node getConfigCache(java.lang.String key)
key
- String - 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
public void setConfigCache(java.lang.String key, org.w3c.dom.Node value)
key
- String - name of nodevalue
- Node - the dom nodepublic void setConfigFileName(java.lang.String fileName)
fileName
- String - name of filepublic static void setServletContext(javax.servlet.ServletContext val)
val
- javax.servlet.ServletContextpublic static ServerConfiguration singleton()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |