org.jboss.metadata.parser.util
Class PropertiesValueResolver
java.lang.Object
org.jboss.metadata.parser.util.PropertiesValueResolver
public class PropertiesValueResolver
- extends Object
Parses a string and replaces any references to system properties or environment variables in the string
- Author:
- Jaikiran Pai (copied from JBoss DMR project), David M. Lloyd
Method Summary |
static String |
replaceProperties(String value)
Replace properties of the form:
${<[env.]name>[,<[env.]name2>[,<[env.]name3>...]][:<default>]} |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertiesValueResolver
public PropertiesValueResolver()
replaceProperties
public static String replaceProperties(String value)
- Replace properties of the form:
${<[env.]name>[,<[env.]name2>[,<[env.]name3>...]][:<default>]}
- Parameters:
value
- - either a system property or environment variable reference
- Returns:
- the value of the system property or environment variable referenced if
it exists
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.