| java.lang.Object org.mortbay.xml.XmlConfiguration
XmlConfiguration | public class XmlConfiguration (Code) | | Configure Objects from XML. This class reads an XML file conforming to the configure.dtd DTD and
uses it to configure and object by calling set, put or other methods on the object.
author: Greg Wilkins (gregw) |
XmlConfiguration | public XmlConfiguration(URL configuration) throws SAXException, IOException(Code) | | Constructor. Reads the XML configuration file.
Parameters: configuration - |
XmlConfiguration | public XmlConfiguration(String configuration) throws SAXException, IOException(Code) | | Constructor.
Parameters: configuration - String of XML configuration commands excluding the normal XML preamble.The String should start with a " exception: SAXException - exception: IOException - |
configure | public void configure(Object obj) throws Exception(Code) | | Configure an object. If the object is of the approprate class, the XML configuration script
is applied to the object.
Parameters: obj - The object to be configured. exception: Exception - |
configure | public Object configure() throws Exception(Code) | | Configure an object. If the configuration has an ID, an object is looked up
by ID and it's type check. Otherwise a new object is created.
The newly created configured object. exception: Exception - |
getProperties | public Map getProperties()(Code) | | |
setProperties | public void setProperties(Map map)(Code) | | |
|
|