maiolum.xml
Class XMLModuleURIsReader

java.lang.Object
  extended bymaiolum.xml.XMLModuleURIsReader

public class XMLModuleURIsReader
extends java.lang.Object

Manages loading of BibleModules into ModuleManager, reading module URIs from the XML file.


Field Summary
private static org.apache.log4j.Logger logger
           
private  ModuleManager moduleManager
           
 
Constructor Summary
XMLModuleURIsReader(ModuleManager moduleManager)
          Constructs a XMLModuleURIsReader and associates to in an ModuleManager.
 
Method Summary
 void load(java.lang.String URI)
          Loads BibleModules into the specified ModuleManager, reading module URIs and languages from the XML file specified by String argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static org.apache.log4j.Logger logger

moduleManager

private ModuleManager moduleManager
Constructor Detail

XMLModuleURIsReader

public XMLModuleURIsReader(ModuleManager moduleManager)
Constructs a XMLModuleURIsReader and associates to in an ModuleManager. The loaded BibleModules will be added to this manager.

Method Detail

load

public void load(java.lang.String URI)
          throws BackendException
Loads BibleModules into the specified ModuleManager, reading module URIs and languages from the XML file specified by String argument.

Throws:
BackendException - when the XML file is corrupted or module definition data could not be loaded.