Log4j 1.1.3

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ü

Constructor Summary
Loader()
           
 
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
 

Constructor Detail

Loader

public Loader()
Method Detail

getResource

public static URL getResource(String resource,
                              Class clazz)
This method will search for resource in different places. The rearch order is as follows:

  1. Search for resource using the same class loader that loaded clazz.

  2. 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.

Log4j 1.1.3

Please notify me about new log4j releases.