anthill.factory
Class ConfigParser
java.lang.Object
|
+--anthill.factory.ConfigParser
- public final class ConfigParser
- extends Object
Parser code to read an XML configuration file, using the supplied URL.
The default URL is 'file:$HOME/.anthill/config.xml', which is used if the
non-argument constructor is used. Otherwise, the constructor takes the
URL as an argument.
- Version:
- $Revision: 1.7 $
- Author:
- Hein Meling
Method Summary |
void |
read(String urlConfig)
Parses the file obtained from the specified URL. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigParser
public ConfigParser(Factory factory)
- Constructs a parser.
- Parameters:
factory
- The factory object invoking the parser. Used to update
the factory's hash map of interface to
read
public void read(String urlConfig)
throws ConfigFormatException,
IOException
- Parses the file obtained from the specified URL.
- Parameters:
urlConfig
- The URL to the xml configuration file containing
the description of the distributed system.
ConfigFormatException
IOException