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
fully/qualified/clazz/name/resource
with the ClassLoader
that loaded clazz
.
- Search for
fully/qualified/clazz/name/resource
with the null
(bootstrap) class loader.
- Search for
resource
with the class loader
that loaded clazz
.
- Try one last time with
ClassLoader.getSystemResource(resource)
Please notify me about new log4j releases.