Clover coverage report -
Coverage timestamp: Do Okt 21 2004 12:21:23 CEST
file stats: LOC: 38   Methods: 2
NCLOC: 19   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
DefaultBootstrapLoader.java 50% 100% 100% 91,7%
coverage 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    * The DefaultBootstrapLoader implements the same functionality as the old
 14    * implementation inside the ConfigurationManager. It will try to find a
 15    * file called "config.xml" in the classpath and if found will parse it
 16    * and this configuration will be stored as "default" configuration.
 17    *
 18    * @author Andreas Mecky andreasmecky@yahoo.de
 19    * @author Terry Dye terrydye@yahoo.com
 20    */
 21    public class DefaultBootstrapLoader implements BootstrapLoader {
 22   
 23  1 public DefaultBootstrapLoader() {
 24    }
 25   
 26  1 public LoadedItem[] load() throws ConfigurationManagerException {
 27  1 Vector configs = new Vector();
 28  1 String fileName = "config.xml";
 29  1 InputStreamHandler ish = new InputStreamHandler(fileName);
 30  1 Configuration config = ish.load("default");
 31  1 if ( config != null ) {
 32  1 LoadedItem li = new LoadedItem(config.getConfigName(),config,ish);
 33  1 configs.add(li);
 34    }
 35  1 return (LoadedItem[])configs.toArray(new LoadedItem[0]);
 36    }
 37   
 38    }