|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.mortbay.xml.XmlConfiguration
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.
Constructor Summary | |
XmlConfiguration(java.lang.String configuration)
Constructor. |
|
XmlConfiguration(java.net.URL configuration)
Constructor. |
Method Summary | |
void |
configure(java.lang.Object obj)
Configure an object. |
static void |
main(java.lang.String[] arg)
|
java.lang.Object |
newInstance()
Create a new object and configure it. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XmlConfiguration(java.net.URL configuration) throws org.xml.sax.SAXException, java.io.IOException
configuration
- public XmlConfiguration(java.lang.String configuration) throws org.xml.sax.SAXException, java.io.IOException
configuration
- String of XML configuration commands
excluding the normal XML preamble. The String should start with
a "org.xml.sax.SAXException
java.io.IOException
Method Detail |
public void configure(java.lang.Object obj) throws java.lang.ClassNotFoundException, java.lang.NoSuchMethodException, java.lang.reflect.InvocationTargetException, java.lang.IllegalAccessException
obj
- The object to be configured.
java.lang.ClassNotFoundException
java.lang.NoSuchMethodException
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
public java.lang.Object newInstance() throws java.lang.ClassNotFoundException, java.lang.NoSuchMethodException, java.lang.reflect.InvocationTargetException, java.lang.InstantiationException, java.lang.IllegalAccessException
java.lang.ClassNotFoundException
java.lang.NoSuchMethodException
java.lang.reflect.InvocationTargetException
java.lang.InstantiationException
java.lang.IllegalAccessException
public static void main(java.lang.String[] arg)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |