org.apache.soap.server
Class XMLConfigManager

java.lang.Object
  |
  +--org.apache.soap.server.BaseConfigManager
        |
        +--org.apache.soap.server.XMLConfigManager

public class XMLConfigManager
extends BaseConfigManager
implements ConfigManager

An XMLConfigManager ...

Author:
Magnus Thor Torfason This class should be almost identical in function to the DefaultConfigManager.

The only notable difference is that while the DefaultConfigManager uses java readObject() and writeObject() methods, this class uses the XML routines of DeploymentDescriptor to save and load the DeploymentDescriptors from the underlying registry file (typically DeployedServices.xml).


Field Summary
protected  java.lang.String filename
          The name of the deployment file.
protected  javax.xml.parsers.DocumentBuilder xdb
           
 
Fields inherited from class org.apache.soap.server.BaseConfigManager
context, dds, serviceNamesCache
 
Constructor Summary
XMLConfigManager()
           
 
Method Summary
 void loadRegistry()
          Loads the descriptors from the underlying registry file, which should be represented as a list of deployment descriptor elements.
 void saveRegistry()
          Saves currently deployed descriptors to the underlying registry file, in XML format.
 void setOptions(java.util.Hashtable options)
          This method sets the configuration options (usually read from the config file).
 
Methods inherited from class org.apache.soap.server.BaseConfigManager
deploy, init, list, query, setContext, undeploy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xdb

protected javax.xml.parsers.DocumentBuilder xdb

filename

protected java.lang.String filename
The name of the deployment file.
Constructor Detail

XMLConfigManager

public XMLConfigManager()
Method Detail

setOptions

public void setOptions(java.util.Hashtable options)
This method sets the configuration options (usually read from the config file).
Specified by:
setOptions in interface ConfigManager

loadRegistry

public void loadRegistry()
                  throws SOAPException
Loads the descriptors from the underlying registry file, which should be represented as a list of deployment descriptor elements.
Overrides:
loadRegistry in class BaseConfigManager

saveRegistry

public void saveRegistry()
                  throws SOAPException
Saves currently deployed descriptors to the underlying registry file, in XML format.
Overrides:
saveRegistry in class BaseConfigManager


Copyright © 2001 Apache XML Project. All Rights Reserved.