com.ideo.sweetdevria.config
Class PropertiesManager

java.lang.Object
  extended by com.ideo.sweetdevria.config.PropertiesManager

public class PropertiesManager
extends java.lang.Object

Get properties from default configuration file.


Constructor Summary
PropertiesManager()
           
 
Method Summary
static java.lang.String getOptionalProperty(java.lang.String key)
          Get an optional property value from the default configuration file.
static java.lang.String getProperty(java.lang.String key)
          Get a mandatory property's value from the default configuration file.
static java.lang.String getProperty(java.lang.String key, java.lang.String propertiesFile)
          Get the property's value from a specific properties file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesManager

public PropertiesManager()
Method Detail

getProperty

public static java.lang.String getProperty(java.lang.String key)
                                    throws java.util.MissingResourceException
Get a mandatory property's value from the default configuration file.

Parameters:
key -
Returns:
value the value associated to the key
Throws:
javax.servlet.jsp.JspException
java.util.MissingResourceException

getOptionalProperty

public static java.lang.String getOptionalProperty(java.lang.String key)
Get an optional property value from the default configuration file.

Parameters:
key -
Returns:
value or null if not found

getProperty

public static java.lang.String getProperty(java.lang.String key,
                                           java.lang.String propertiesFile)
                                    throws javax.servlet.jsp.JspException
Get the property's value from a specific properties file

Parameters:
key -
propertiesFile -
Returns:
value
Throws:
javax.servlet.jsp.JspException


Copyright © 2010 Ideo Technologies. All Rights Reserved.