public static String getProperty ( String name ) throws MissingPropertyException { if ( log . isTraceEnabled ( ) ) { log . trace ( "entering getProperty(" + name + ")" ) ; } if ( PropertiesManager . props == null ) loadProps ( ) ; String val = getPropertyUntrimmed ( name ) ; val = val . trim ( ) ; if ( log . isTraceEnabled ( ) ) { log . trace ( "returning from getProperty(" + name + ") with return value [" + val + "]" ) ; } return val ; }
Returns the value of a property for a given name . Any whitespace is trimmed off the beginning and end of the property value . Note that this method will never return null . If the requested property cannot be found this method throws an UndeclaredPortalException .