|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkaos.core.util.ResourceLoader
public class ResourceLoader
ResourceLoader is a utility class that has methods for retrieving application resources (flat files, Properties files, ResourceBundles, and so on) from an application's CLASSPATH (usually inside a JAR file) using a ClassLoader. Resources may be retrieved as Properties objects or URLs.
Method Summary | |
---|---|
static java.util.Properties |
getAsProperties(java.lang.String name)
Retrieves a resource for the given name in the CLASSPATH using the specified Class Loader, returning it as a Properties object. |
static java.net.URL |
getAsUrl(java.lang.String name)
Retrieves a resource for the given name in the CLASSPATH, returning it as an URL. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.util.Properties getAsProperties(java.lang.String name)
name
- The resource name.
public static java.net.URL getAsUrl(java.lang.String name)
name
- The resource name.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |