com.metamatrix.common.config.reader
Class PropertiesConfigurationReader

java.lang.Object
  extended by com.metamatrix.common.config.reader.PropertiesConfigurationReader
All Implemented Interfaces:
CurrentConfigurationReader

public class PropertiesConfigurationReader
extends java.lang.Object
implements CurrentConfigurationReader

This class implements a self-contained reader for the current configuration, and should be used only by the CurrentConfiguration framework. As such, this is an extremely low-level implementation that may not use anything but com.metamatrix.common.util components and only components that do not use LogManager.

Each class that implements this interface must supply a no-arg constructor.


Field Summary
static java.lang.String FILENAME
          The environment property name for the property file that contains the configuration.
 
Constructor Summary
PropertiesConfigurationReader()
          Default, no-arg constructor
 
Method Summary
 ConfigurationModelContainer getConfigurationModel()
          Obtain the next startup configuration model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILENAME

public static final java.lang.String FILENAME
The environment property name for the property file that contains the configuration.

See Also:
Constant Field Values
Constructor Detail

PropertiesConfigurationReader

public PropertiesConfigurationReader()
                              throws ConfigurationConnectionException,
                                     ConfigurationException
Default, no-arg constructor

Throws:
ConfigurationException
ConfigurationConnectionException
Method Detail

getConfigurationModel

public ConfigurationModelContainer getConfigurationModel()
                                                  throws ConfigurationException
Obtain the next startup configuration model. The implementation may not use logging but instead should rely upon returning an exception in the case of any errors.

Specified by:
getConfigurationModel in interface CurrentConfigurationReader
Returns:
the serializable Configuration instance
Throws:
ConfigurationException - if an error occurred within or during communication with the repository.


Copyright © 2009. All Rights Reserved.