public class StringPropertyReplacer extends Object
Modifier and Type | Field and Description |
---|---|
static String |
NEWLINE
New line string constant
|
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 final String NEWLINE
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 © 2012 JBoss by Red Hat. All Rights Reserved.