public class PropertiesHelper extends Object
Modifier and Type | Method and Description |
---|---|
static String |
getInterpolatedPropertyValue(String key,
Properties props)
Retrieves a property value, replacing values like ${token}
using the Properties to look them up.
|
static Properties |
loadPropertyFile(File propfile)
Reads a property file, resolving all internal variables.
|
public static Properties loadPropertyFile(File propfile)
propfile
- The property file to loadpublic static String getInterpolatedPropertyValue(String key, Properties props)
key
- The key for which to find the corresponding valueprops
- The properties from which to find the value.Copyright © 2009–2015 JBoss, a division of Red Hat, Inc. All rights reserved.