public final class StringPropertyReplacer extends Object
Constructor and Description |
---|
StringPropertyReplacer() |
Modifier and Type | Method and Description |
---|---|
static String |
replaceProperties(String string)
Go through the input string and replace any occurance of ${p} with the
System.getProperty(p) value.
|
static String |
replaceProperties(String string,
Properties props)
Go through the input string and replace any occurance of ${p} with the
props.getProperty(p) value.
|
public static String replaceProperties(String string)
string
- - the string with possible ${} referencespublic static String replaceProperties(String string, Properties props)
string
- - the string with possible ${} referencesprops
- - the source for ${x} property ref values, null means use
System.getProperty()Copyright © 2008–2013 JBoss.org. All rights reserved.