public class PlaceHolderReplacer extends Object
| Constructor and Description |
|---|
PlaceHolderReplacer() |
| Modifier and Type | Method and Description |
|---|---|
static String |
replaceWithProperties(String str)
If running inside JBoss, it replace any occurrence of ${p} with the System.getProperty(p) value.
|
static String |
replaceWithProperties(String str,
Properties props)
If running inside JBoss, it replace any occurrence of ${p} with the System.getProperty(p) value.
|
public static String replaceWithProperties(String str)
str - the input string that substitution will be performed upon.public static String replaceWithProperties(String str, Properties props)
str - the input string that substitution will be performed upon.props - the properties to be used instead of System.getProerty()Copyright © 2014. All Rights Reserved.