org.apache.log4j.helpers
Class Loader
java.lang.Object
|
+--org.apache.log4j.helpers.Loader
- public class Loader
- extends Object
Load resources (or images) from various sources.
- Author:
- Sven Reimers, Ceki Gülcü
Method Summary |
static URL |
getResource(String resource,
Class clazz)
This method will search for resource in different
places. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Loader
public Loader()
getResource
public static URL getResource(String resource,
Class clazz)
- This method will search for
resource
in different
places. The rearch order is as follows:
- Search for
resource
using the same class
loader that loaded clazz
.
- Try one last time with
ClassLoader.getSystemResource(resource)
, that is is
using the system class loader in JDK 1.2 and virtual machine's
built-in class loader in JDK 1.1.
Please notify me about new log4j releases.