uk.org.ury.backend.config
Class ConfigReader

java.lang.Object
  extended by uk.org.ury.backend.config.ConfigReader

public class ConfigReader
extends java.lang.Object

Reads in an XML config file and creates config objects

Author:
Nathan Lasseter

Constructor Summary
ConfigReader(java.lang.String configFile)
          Read in the config file and create the Database and Auth configuration objects.
 
Method Summary
 Database getDatabase()
          Get the database configuration
 Auth getRoAuth()
          Get the read only login auth configuration
 Auth getRwAuth()
          Get the read write login auth configuration
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigReader

public ConfigReader(java.lang.String configFile)
             throws MissingCredentialsException
Read in the config file and create the Database and Auth configuration objects. Specify a config file.

Throws:
MissingCredentialsException
Method Detail

getDatabase

public Database getDatabase()
Get the database configuration

Returns:
Database database

getRoAuth

public Auth getRoAuth()
Get the read only login auth configuration

Returns:
Auth roAauth

getRwAuth

public Auth getRwAuth()
Get the read write login auth configuration

Returns:
Auth rwAauth