Clover coverage report -
Coverage timestamp: Do Okt 21 2004 12:21:23 CEST
file stats: LOC: 42   Methods: 2
NCLOC: 19   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
XMLBootstrapLoader.java 0% 0% 0% 0%
coverage
 1    /*
 2    * DefaultBootstrapLoader.java
 3    *
 4    * Created on 23. August 2004, 21:32
 5    */
 6   
 7    package org.jconfig.bootstrap;
 8   
 9    import org.jconfig.*;
 10    import org.jconfig.handler.*;
 11    import java.util.Vector;
 12    /**
 13    * This BootstrapLoader will read in an XML file called "bootstrap.xml"
 14    * and parse the content. Then it will load every configuration with the
 15    * defined handler and (optional) parser.<br/>
 16    * <B>Note:</B> This is currently not implemented and this loader works
 17    * exactly like the DefaultBootstrapLoader!!!
 18    *
 19    * @author Andreas Mecky andreasmecky@yahoo.de
 20    * @author Terry Dye terrydye@yahoo.com
 21    */
 22    public class XMLBootstrapLoader implements BootstrapLoader {
 23   
 24    /**
 25    *
 26    */
 27  0 public XMLBootstrapLoader() {
 28    }
 29   
 30  0 public LoadedItem[] load() throws ConfigurationManagerException {
 31  0 Vector configs = new Vector();
 32  0 String fileName = "config.xml";
 33  0 InputStreamHandler ish = new InputStreamHandler(fileName);
 34  0 Configuration config = ish.load("default");
 35  0 if ( config != null ) {
 36  0 LoadedItem li = new LoadedItem(config.getConfigName(),config,ish);
 37  0 configs.add(li);
 38    }
 39  0 return (LoadedItem[])configs.toArray(new LoadedItem[0]);
 40    }
 41   
 42    }