name.angoca.db2sa.readers
Class ConfigurationReader

Package class diagram package ConfigurationReader
java.lang.Object
  extended by name.angoca.db2sa.readers.ConfigurationReader

public final class ConfigurationReader
extends Object

This class read the configuration file and then it can return the set of parameters to the controller.
Control Version

Version:
1.0.0 2009-07-19
Author:
Andres Gomez Casanova (AngocA)

Method Summary
static Properties readFile(String filename)
          Reads a file given its filename, and the retrieves the properties stored in the file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

readFile

public static Properties readFile(String filename)
                           throws AbstractReaderException
Reads a file given its filename, and the retrieves the properties stored in the file.

Parameters:
filename - name of the file that contains the configuration of the application.
Returns:
The set of properties read from the file.
Throws:
AbstractReaderException - If an error reading the file occurs, error such as file not found, or invalid structure.


Andres Gomez Casanova (AngocA) Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License.