uk.ac.soton.itinnovation.grid.service.utils
Class ConfigProperties

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.service.utils.ConfigProperties

public class ConfigProperties
extends Object


Constructor Summary
ConfigProperties()
           
 
Method Summary
static void readProperties(String propertyResourceBundle)
          Reads properties from the specified bundle and sets them in System properties
static void readProperties(String configFile, String propertyResourceBundle)
          Reads properties from the specified bundle and the location of the specified bundle and sets them in System properties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigProperties

public ConfigProperties()
Method Detail

readProperties

public static void readProperties(String propertyResourceBundle)
                           throws PropertyConfigurationException,
                                  IOException
Reads properties from the specified bundle and sets them in System properties

Parameters:
propertyResourceBundle - Name of the bundle to read from
Throws:
PropertyConfigurationException
IOException

readProperties

public static void readProperties(String configFile,
                                  String propertyResourceBundle)
                           throws PropertyConfigurationException,
                                  IOException
Reads properties from the specified bundle and the location of the specified bundle and sets them in System properties

Parameters:
configFile - config file specifying the location of the specified bundle.
propertyResourceBundle - Name of the bundle to read from
Throws:
PropertyConfigurationException
IOException


Copyright © 2001-2008 University of Southampton IT Innovation Centre. All Rights Reserved.