| java.lang.Object org.jasig.portal.PropertiesManager
PropertiesManager | public class PropertiesManager (Code) | | Deprecated PropertiesManager.
This class still exists here at org.jasig.portal.PropertiesManager in order to delegate all requests to the
real PropertiesManager at org.jasig.portal.properties.PropertiesManager so as not to break backwards compatibility.
Pre 2.4 code which imports this old PropertiesManager should still work great.
However, note that there is new functionality to be had from the new PropertiesManager in the form of reporting
of missing properties and methods which take default values.
Please change your imports to import the new PropertiesManager.
Presumably this deprecated class will disappear in a future uPortal release.
author: andrew.petro@yale.edu - deprecated and moved. see org.jasig.portal.properties.PropertiesManager version: $Revision: 34814 $ $Date: 2004-10-17 14:40:26 -0700 (Sun, 17 Oct 2004) $ since: uPortal 2.0 |
getProperty | public static String getProperty(String name) throws MissingPropertyException(Code) | | Returns the value of a property for a given name.
Parameters: name - the name of the requested property value the value of the property matching the requested name throws: MissingPropertyException - - if the requested property cannot be found |
getPropertyAsBoolean | public static boolean getPropertyAsBoolean(String name) throws MissingPropertyException(Code) | | Returns the value of a property for a given name.
This method can be used if the property is boolean in
nature and you want to make sure that true is
returned if the property is set to "true", "yes", "y", or "on"
(regardless of case),
and false is returned in all other cases.
Parameters: name - the name of the requested property value true if property is set to "true", "yes", "y", or "on" regardless of case, otherwise false throws: MissingPropertyException - - when no property of the given name is declared. |
getPropertyUntrimmed | public static String getPropertyUntrimmed(String name) throws MissingPropertyException(Code) | | Returns the value of a property for a given name
including whitespace trailing the property value, but not including
whitespace leading the property value.
Parameters: name - the name of the requested property value the value of the property matching the requested name throws: MissingPropertyException - - (undeclared) if the requested property is not found |
|
|