JBoss Metadata Common 7.0.1.Final

org.jboss.metadata.parser.util
Class PropertiesValueResolver

java.lang.Object
  extended by 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

Constructor Summary
PropertiesValueResolver()
           
 
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
 

Constructor Detail

PropertiesValueResolver

public PropertiesValueResolver()
Method Detail

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

JBoss Metadata Common 7.0.1.Final

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.