NextApp Echo3
v3.0.b4

nextapp.echo.app.util
Class PropertiesDiscovery

java.lang.Object
  extended by nextapp.echo.app.util.PropertiesDiscovery

public class PropertiesDiscovery
extends java.lang.Object

Utility class for retrieving property files matching a specific name across the CLASSPATH.


Method Summary
static java.util.Map loadProperties(java.lang.String resourceName, java.lang.ClassLoader classLoader)
          Returns a map containing the contents of all property files with the specified resource name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

loadProperties

public static java.util.Map loadProperties(java.lang.String resourceName,
                                           java.lang.ClassLoader classLoader)
                                    throws java.io.IOException
Returns a map containing the contents of all property files with the specified resource name.

Parameters:
resourceName - the name of the properties file(s) to load
Returns:
a map containing properties of all properties files in the CLASSPATH matching the specified resourceName
Throws:
java.io.IOException

NextApp Echo3
v3.0.b4