|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.qos.logback.core.util.Loader
public class Loader
Load resources (or images) from various sources.
Field Summary | |
---|---|
static String |
IGNORE_TCL_PROPERTY_NAME
|
Constructor Summary | |
---|---|
Loader()
|
Method Summary | |
---|---|
static URL |
getResource(String resource,
ClassLoader classLoader)
Search for a resource using the classloader passed as parameter. |
static URL |
getResourceBySelfClassLoader(String resource)
Attempt to find a resource by using the classloader that loaded this class, namely Loader.class. |
static List<URL> |
getResourceOccurenceCount(String resource,
ClassLoader classLoader)
Compute the number of occurrences a resource can be found by a class loader. |
static ClassLoader |
getTCL()
Get the Thread Context Loader which is a JDK 1.2 feature. |
static Class |
loadClass(String clazz)
If running under JDK 1.2 load the specified class using the Thread contextClassLoader if that fails try
Class.forname. |
static Class |
loadClass(String clazz,
Context context)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String IGNORE_TCL_PROPERTY_NAME
Constructor Detail |
---|
public Loader()
Method Detail |
---|
public static List<URL> getResourceOccurenceCount(String resource, ClassLoader classLoader) throws IOException
resource
- classLoader
-
IOException
public static URL getResource(String resource, ClassLoader classLoader)
resource
- the resource name to look forclassLoader
- the classloader used for the searchpublic static URL getResourceBySelfClassLoader(String resource)
resource
-
public static ClassLoader getTCL()
null.
public static Class loadClass(String clazz, Context context) throws ClassNotFoundException
ClassNotFoundException
public static Class loadClass(String clazz) throws ClassNotFoundException
Thread
contextClassLoader
if that fails try
Class.forname. Under JDK 1.1 only Class.forName is used.
ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |