anthill.factory
Class ConfigParser

java.lang.Object
  |
  +--anthill.factory.ConfigParser

public final class ConfigParser
extends java.lang.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.


Constructor Summary
ConfigParser(Factory factory)
          Constructs a parser that parses the file given by the default URL.
ConfigParser(java.lang.String urlConfig, Factory factory)
          Constructs a parser that 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
 

Constructor Detail

ConfigParser

public ConfigParser(Factory factory)
             throws ConfigFormatException,
                    java.io.IOException
Constructs a parser that parses the file given by the default URL.
Parameters:
factory - The factory object invoking the parser. Used to update the factory's hash map of interface to

ConfigParser

public ConfigParser(java.lang.String urlConfig,
                    Factory factory)
             throws ConfigFormatException,
                    java.io.IOException
Constructs a parser that parses the file obtained from the specified URL.
Parameters:
factory - The factory object invoking the parser. Used to update the factory's hash map of interface to
urlConfig - The URL to the xml configuration file containing the description of the distributed system.