public final class StringPropertyReplacer extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
StringPropertyReplacer.PropertyProvider |
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,
org.osgi.framework.BundleContext context)
Go through the input string and replace any occurance of ${p} with the BundleContext.getProperty(p) value.
|
static String |
replaceProperties(String string,
StringPropertyReplacer.PropertyProvider provider)
Go through the input string and replace any occurance of ${p} with the PropertyProvider.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, org.osgi.framework.BundleContext context)
string
- - the string with possible ${} referencespublic static String replaceProperties(String string, StringPropertyReplacer.PropertyProvider provider)
string
- - the string with possible ${} referencesprovider
- - the source for ${x} property ref valuesCopyright © 2013 JBoss by Red Hat. All rights reserved.