org.outerj.daisy.configutil
Class PropertyResolver

java.lang.Object
  extended by org.outerj.daisy.configutil.PropertyResolver

public class PropertyResolver
extends java.lang.Object


Constructor Summary
PropertyResolver()
           
 
Method Summary
static java.lang.String resolveProperties(java.lang.String input)
           
static java.lang.String resolveProperties(java.lang.String input, java.util.Properties properties)
          Resolves properties in the input string referenced using ${property} syntax.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyResolver

public PropertyResolver()
Method Detail

resolveProperties

public static java.lang.String resolveProperties(java.lang.String input)

resolveProperties

public static java.lang.String resolveProperties(java.lang.String input,
                                                 java.util.Properties properties)
Resolves properties in the input string referenced using ${property} syntax. Special 'function' properties are also supported, which use a syntax like ${url-encode:something}. Nested syntax is also supported, e.g. ${property and ${anotherproperty}}, which is mostly useful in combination with the function properties like 'url-encode:'.



Copyright © -2012 . All Rights Reserved.