public class XmlConfiguration extends Object
| Constructor and Description |
|---|
XmlConfiguration(InputStream configuration)
Constructor.
|
XmlConfiguration(String configuration)
Constructor.
|
XmlConfiguration(URL configuration)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Object obj)
Configure an object.
|
static void |
main(String[] arg) |
Object |
newInstance()
Create a new object and configure it.
|
public XmlConfiguration(URL configuration) throws SAXException, IOException
configuration - SAXExceptionIOExceptionpublic XmlConfiguration(String configuration) throws SAXException, IOException
configuration - String of XML configuration commands excluding the normal XML preamble.
The String should start with a " SAXExceptionIOExceptionpublic XmlConfiguration(InputStream configuration) throws SAXException, IOException
configuration - An input stream containing a complete e.g. configuration fileSAXExceptionIOExceptionpublic void configure(Object obj) throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException
obj - The object to be configured.ClassNotFoundExceptionNoSuchMethodExceptionInvocationTargetExceptionIllegalAccessExceptionInstantiationExceptionpublic Object newInstance() throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException
ClassNotFoundExceptionNoSuchMethodExceptionInvocationTargetExceptionInstantiationExceptionIllegalAccessExceptionpublic static void main(String[] arg)
Copyright © 2015. All Rights Reserved.