public final class PropertiesLoaderUtils extends Object
Modifier and Type | Method and Description |
---|---|
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
Apache CXF