edu.umk.mat.merdacz.JGServer.config
Class CfgLoader

java.lang.Object
  extended byedu.umk.mat.merdacz.JGServer.config.CfgLoader

public class CfgLoader
extends java.lang.Object

CfgLoader is used to fill in ServerCfg object. We take data from xml file parse it by SAXParser (Xerces underlies) and use simple JDOM API to get interesting content. We put it CfgBox - the boxing is not really needed, it was used because of apache-commons digester was used to bind config before.

And yes we don't really like digester!!!

Author:
Marcin Daczkowski

Constructor Summary
CfgLoader(CfgBox cfgBox, java.lang.String configFile)
          Fills in ServerCfg object embeded in CfgBox opaque class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CfgLoader

public CfgLoader(CfgBox cfgBox,
                 java.lang.String configFile)
          throws CfgLoaderException
Fills in ServerCfg object embeded in CfgBox opaque class.

Throws:
CfgLoaderException
javax.xml.parsers.ParserConfigurationException