@BetaApi public class PropertiesProvider extends Object
| Constructor and Description |
|---|
PropertiesProvider() |
| Modifier and Type | Method and Description |
|---|---|
static String |
loadProperty(Class<?> loadedClass,
String propertiesPath,
String key)
Utility method for retrieving the value of the given key from a property file in the package.
|
static String |
loadProperty(Properties properties,
String propertiesPath,
String key)
Utility method for retrieving the value of the given key from a property file in the package.
|
public static String loadProperty(Class<?> loadedClass, String propertiesPath, String key)
loadedClass - The class used to get the resource pathpropertiesPath - The relative file path to the property filekey - Key string of the propertypublic static String loadProperty(Properties properties, String propertiesPath, String key)
properties - The properties object to cache the properties data inpropertiesPath - The relative file path to the property filekey - Key string of the property