org.jboss.axis.configuration
Class XMLStringProvider

java.lang.Object
  extended byorg.jboss.axis.configuration.FileProvider (src) 
      extended byorg.jboss.axis.configuration.XMLStringProvider
All Implemented Interfaces:
EngineConfiguration (src) , WSDDEngineConfiguration (src)

public class XMLStringProvider
extends FileProvider (src)

A simple ConfigurationProvider that uses the Admin class to configure the engine from a String containing XML.

This provider does not write configuration to persistent storage.

Example of usage: new XMLStringProvider("");


Field Summary
 
Fields inherited from interface org.jboss.axis.EngineConfiguration (src)
PROPERTY_NAME
 
Constructor Summary
XMLStringProvider(java.lang.String xmlConfiguration)
          Constructor
 
Method Summary
 void configureEngine(AxisEngine (src)  engine)
          Configure this AxisEngine using whatever data source we have.
 void writeEngineConfig(AxisEngine (src)  engine)
          Save the engine configuration.
 
Methods inherited from class org.jboss.axis.configuration.FileProvider (src)
getDeployedServices, getDeployment, getGlobalOptions, getGlobalRequest, getGlobalResponse, getHandler, getService, getServiceByNamespaceURI, getTransport, getTypeMappingRegistry, setDeployment, setInputStream, setSearchClasspath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLStringProvider

public XMLStringProvider(java.lang.String xmlConfiguration)
Constructor

Parameters:
xmlConfiguration - a String containing an engine configuration in XML.
Method Detail

writeEngineConfig

public void writeEngineConfig(AxisEngine (src)  engine)
                       throws ConfigurationException (src) 
Description copied from class: FileProvider (src)
Save the engine configuration. In case there's a problem, we write it to a string before saving it out to the actual file so we don't screw up the file.

Specified by:
writeEngineConfig in interface EngineConfiguration (src)
Overrides:
writeEngineConfig in class FileProvider (src)
Throws:
ConfigurationException (src)

configureEngine

public void configureEngine(AxisEngine (src)  engine)
                     throws ConfigurationException (src) 
Description copied from interface: EngineConfiguration (src)
Configure this AxisEngine using whatever data source we have.

Specified by:
configureEngine in interface EngineConfiguration (src)
Overrides:
configureEngine in class FileProvider (src)
Throws:
ConfigurationException (src)