org.apache.cxf.common.util
Class PropertiesLoaderUtils

java.lang.Object
  extended by org.apache.cxf.common.util.PropertiesLoaderUtils

public final class PropertiesLoaderUtils
extends java.lang.Object

Replace by org.springframework.core.io.support.PropertiesLoaderUtils when moving to Spring 2.0.


Method Summary
static java.util.Collection<java.lang.String> getPropertyNames(java.util.Properties properties, java.lang.String value)
          Retrieves the names of all properties that bind to the specified value.
static java.util.Properties loadAllProperties(java.lang.String resourceName, java.lang.ClassLoader classLoader)
          Load all properties from the given class path resource, using the given class loader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

loadAllProperties

public static java.util.Properties loadAllProperties(java.lang.String resourceName,
                                                     java.lang.ClassLoader classLoader)
                                              throws java.io.IOException
Load all properties from the given class path resource, using the given class loader.

Merges properties if more than one resource of the same name found in the class path.

Parameters:
resourceName - the name of the class path resource
classLoader - the ClassLoader to use for loading (or null to use the default class loader)
Returns:
the populated Properties instance
Throws:
java.io.IOException - if loading failed

getPropertyNames

public static java.util.Collection<java.lang.String> getPropertyNames(java.util.Properties properties,
                                                                      java.lang.String value)
Retrieves the names of all properties that bind to the specified value.

Parameters:
properties - the properties to search
value - the property value
Returns:
the list of property names


Apache CXF