org.openoss.opennms.spring.qosd
Class PropertiesLoader

java.lang.Object
  extended by org.openoss.opennms.spring.qosd.PropertiesLoader

public class PropertiesLoader
extends Object

Class to load properties from the properties file. This loads the file once and returns a singleton on further calls

Version:
$Id: $
Author:
ranger

Method Summary
static PropertiesLoader getInstance()
          Getter for the field instance.
 String getProperty(String propertyName)
          getProperty
 Set getPropertyNames()
          getPropertyNames
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static PropertiesLoader getInstance()
                                    throws FileNotFoundException,
                                           IOException

Getter for the field instance.

Returns:
a PropertiesLoader object.
Throws:
FileNotFoundException - if any.
IOException - if any.

getProperty

public String getProperty(String propertyName)
                   throws IllegalArgumentException

getProperty

Parameters:
propertyName - a String object.
Returns:
a String object.
Throws:
IllegalArgumentException - if any.

getPropertyNames

public Set getPropertyNames()

getPropertyNames

Returns:
a Set object.


Copyright © 2011. All Rights Reserved.