public final class PropertiesLoaderUtils extends Object
Modifier and Type | Method and Description |
---|---|
static Collection<String> |
getPropertyNames(Properties properties,
String value)
Retrieves the names of all properties that bind to the specified value.
|
static Properties |
loadAllProperties(String resourceName,
ClassLoader classLoader)
Load all properties from the given class path resource, using the given
class loader.
|
static Properties |
loadAllProperties(String resourceName,
ClassLoader classLoader,
Logger logger,
Level level,
String msg) |
public static Properties loadAllProperties(String resourceName, ClassLoader classLoader) throws IOException
Merges properties if more than one resource of the same name found in the class path.
resourceName
- the name of the class path resourceclassLoader
- the ClassLoader to use for loading (or
null
to use the default class loader)IOException
- if loading failedpublic static Properties loadAllProperties(String resourceName, ClassLoader classLoader, Logger logger, Level level, String msg) throws IOException
IOException
public static Collection<String> getPropertyNames(Properties properties, String value)
properties
- the properties to searchvalue
- the property valueCopyright © 2018 JBoss by Red Hat. All rights reserved.