Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## nextapp.echo2.app.util
Class PropertiesDiscovery

    java.lang.Object
      nextapp.echo2.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`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD