com.oakgrovesystems.reactor
Class ReactorProperties

java.lang.Object
  |
  +--com.oakgrovesystems.reactor.ReactorProperties

public class ReactorProperties
extends java.lang.Object

Used to retrieve configuration information from .propeties files in the classpath.


Constructor Summary
ReactorProperties()
           
 
Method Summary
static java.lang.String getFrontDeskURL()
           
static java.util.Properties getProperties(java.lang.String filename)
          Gets filename from the classpath using ClassLoader.getResourceAsStream().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReactorProperties

public ReactorProperties()
Method Detail

getFrontDeskURL

public static java.lang.String getFrontDeskURL()

getProperties

public static java.util.Properties getProperties(java.lang.String filename)
Gets filename from the classpath using ClassLoader.getResourceAsStream(). Stores the contents in a Properties object.

Parameters:
filename - the filename of the properties file to read from the classpath.
Returns:
A Properties object instantiated from the properties in filename. Null if filename is not found. Empty properties object if the properties file is malformatted.


Copyright (c) 1999-2004 Oak Grove Systems. All Rights Reserved.