org.jconfig.bootstrap
Class DefaultBootstrapLoader

java.lang.Object
  extended byorg.jconfig.bootstrap.DefaultBootstrapLoader
All Implemented Interfaces:
BootstrapLoader

public class DefaultBootstrapLoader
extends java.lang.Object
implements BootstrapLoader

The DefaultBootstrapLoader implements the same functionality as the old implementation inside the ConfigurationManager. It will try to find a file called "config.xml" in the classpath and if found will parse it and this configuration will be stored as "default" configuration.

Author:
Andreas Mecky andreasmecky@yahoo.de, Terry Dye terrydye@yahoo.com

Constructor Summary
DefaultBootstrapLoader()
           
 
Method Summary
 LoadedItem[] load()
          This method is supposed to return a list of configurations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBootstrapLoader

public DefaultBootstrapLoader()
Method Detail

load

public LoadedItem[] load()
                  throws ConfigurationManagerException
Description copied from interface: BootstrapLoader
This method is supposed to return a list of configurations. The specific BootstrapLoader is used by the ConfigurationManager when instantiated. All configurations will be added to the ConfigurationManager.

Specified by:
load in interface BootstrapLoader
Throws:
ConfigurationManagerException


Copyright © 2001-2005 Andreas Mecky, Terry Dye. All Rights Reserved.