de.smartics.properties.spi.config.support
Class BootLoader

Package class diagram package BootLoader
java.lang.Object
  extended by de.smartics.properties.spi.config.support.BootLoader

@NotThreadSafe
public final class BootLoader
     
     
extends Object

Loads boot properties that influence the loading of properties.


Constructor Summary
BootLoader(ConfigurationPropertiesManagement configuration, ClassLoader classLoader)
          Convenience constructor to initialize class path root URLs.
 
Method Summary
 ConfigurationPropertiesManagement load()
          Loads the configuration properties instance from information found on the class path.
 ConfigurationPropertiesManagement loadAndValidate()
          Loads the configuration properties instance from information found on the class path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BootLoader

public BootLoader(ConfigurationPropertiesManagement configuration,
                  ClassLoader classLoader)
           throws de.smartics.util.lang.NullArgumentException
Convenience constructor to initialize class path root URLs.

Parameters:
configuration - the configuration to add properties to.
classLoader - the class loader whose class roots are added.
Throws:
de.smartics.util.lang.NullArgumentException - if configuration or rootUrls is null.
Method Detail

load

public ConfigurationPropertiesManagement load()
                                       throws CompoundConfigurationException
Loads the configuration properties instance from information found on the class path.

Returns:
the loaded configuration properties instance.
Throws:
CompoundConfigurationException - if loading encountered problems.

loadAndValidate

public ConfigurationPropertiesManagement loadAndValidate()
                                                  throws ConfigurationValidationException
Loads the configuration properties instance from information found on the class path.

Returns:
the loaded configuration properties instance.
Throws:
ConfigurationValidationException - if the validation of the configuration failed.


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.