com.acciente.induction.init.config.xmlconfigloader
Class XMLConfigLoader

java.lang.Object
  extended by com.acciente.induction.init.config.xmlconfigloader.XMLConfigLoader
All Implemented Interfaces:
ConfigLoader

public class XMLConfigLoader
extends Object
implements ConfigLoader

An implementation of the ConfigLoader that loads the configuration from an XML file.

Author:
Adinath Raveendra Raj todo: support for a DTD validator to catch simple config errors, otherwise hard to trace

Constructor Summary
XMLConfigLoader(String sResourceName)
           
XMLConfigLoader(String sResourceName, javax.servlet.ServletConfig oServletConfig)
           
 
Method Summary
 Config getConfig()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLConfigLoader

public XMLConfigLoader(String sResourceName)

XMLConfigLoader

public XMLConfigLoader(String sResourceName,
                       javax.servlet.ServletConfig oServletConfig)
Method Detail

getConfig

public Config getConfig()
                 throws ConfigLoaderException
Specified by:
getConfig in interface ConfigLoader
Throws:
ConfigLoaderException


Copyright © 2008-2013 Acciente, LLC. All Rights Reserved.