public class PropertiesUtil extends Object
Modifier and Type | Method and Description |
---|---|
static Properties |
getPropertiesFromResource(URL resource)
Returns the given properties resource on the project classpath if found or an empty properties object if not
|
static String |
getValueFromProperties(Properties properties,
String... keys)
Return first Non Null set property from a set of provided properties
|
public static Properties getPropertiesFromResource(URL resource)
resource
- resource urlpublic static String getValueFromProperties(Properties properties, String... keys)
properties
- Properties
in a given projectkeys
- an array of property key values to findCopyright © 2021. All rights reserved.