uk.ac.sanger.cgp.standalonecsa.util
Class PropertyUtils

java.lang.Object
  extended by uk.ac.sanger.cgp.standalonecsa.util.PropertyUtils

public class PropertyUtils
extends java.lang.Object

A class which encapsulates common acitivties against property files, system properties and resource bundles

Author:
Original: kr2, $Author: kr2 $

Field Summary
protected static org.apache.commons.logging.Log log
           
 
Constructor Summary
PropertyUtils()
           
 
Method Summary
static java.util.Properties getClasspathProperties(java.lang.String classpathLocation)
          For a given location this method will load the file into a properties object
static java.util.Properties getProperties(java.lang.String configFileLocation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.commons.logging.Log log
Constructor Detail

PropertyUtils

public PropertyUtils()
Method Detail

getClasspathProperties

public static java.util.Properties getClasspathProperties(java.lang.String classpathLocation)
For a given location this method will load the file into a properties object

Parameters:
classpathLocation - The loation of the properties file on the classpath as defined by Class.getResourceAsStream(String)
Returns:
The loaded properties bundle
Throws:
CsaRuntimeException - Thrown if an IOException is detected whilst loading the properties file

getProperties

public static java.util.Properties getProperties(java.lang.String configFileLocation)