org.apache.qpid.configuration
Class PropertyUtils

java.lang.Object
  extended by org.apache.qpid.configuration.PropertyUtils

public class PropertyUtils
extends java.lang.Object

Based on code in Apache Ant, this utility class handles property expansion. This is most useful in config files and so on.


Constructor Summary
PropertyUtils()
           
 
Method Summary
static java.lang.String replaceProperties(java.lang.String value)
          Replaces ${xxx} style constructions in the given value with the string value of the corresponding data types.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyUtils

public PropertyUtils()
Method Detail

replaceProperties

public static java.lang.String replaceProperties(java.lang.String value)
                                          throws PropertyException
Replaces ${xxx} style constructions in the given value with the string value of the corresponding data types. Replaces only system properties

Parameters:
value - The string to be scanned for property references. May be null, in which case this method returns immediately with no effect.
Returns:
the original string with the properties replaced, or null if the original string is null.
Throws:
PropertyException - if the string contains an opening ${ without a closing }