Package ch.qos.logback.core.util
Class Loader
java.lang.Object
ch.qos.logback.core.util.Loader
Deprecated.
This internal logback API is not supported by AEM as a Cloud Service.
Load resources (or images) from various sources.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassLoadergetClassLoaderAsPrivileged(Class<?> clazz) Deprecated.Returns the class loader of clazz in an access privileged section.static ClassLoadergetClassLoaderOfClass(Class<?> clazz) Deprecated.Return the class loader which loaded the class passed as argument.static ClassLoaderDeprecated.Get the class loader of the object passed as argument.static URLgetResource(String resource, ClassLoader classLoader) Deprecated.Search for a resource using the classloader passed as parameter.static URLgetResourceBySelfClassLoader(String resource) Deprecated.Attempt to find a resource by using the classloader that loaded this class, namely Loader.class.getResources(String resource, ClassLoader classLoader) Deprecated.Compute the number of occurrences a resource can be found by a class loader.static ClassLoadergetTCL()Deprecated.Get the Thread Context Loader which is a JDK 1.2 feature.static Class<?> Deprecated.If running under JDK 1.2 load the specified class using theThreadcontextClassLoaderif that fails try Class.forname.static Class<?> Deprecated.
-
Field Details
-
IGNORE_TCL_PROPERTY_NAME
Deprecated.- See Also:
-
-
Constructor Details
-
Loader
public Loader()Deprecated.
-
-
Method Details
-
getResources
Deprecated.Compute the number of occurrences a resource can be found by a class loader.- Parameters:
resource-classLoader-- Returns:
- Throws:
IOException
-
getResource
Deprecated.Search for a resource using the classloader passed as parameter.- Parameters:
resource- the resource name to look forclassLoader- the classloader used for the search
-
getResourceBySelfClassLoader
Deprecated.Attempt to find a resource by using the classloader that loaded this class, namely Loader.class.- Parameters:
resource-- Returns:
-
getTCL
Deprecated.Get the Thread Context Loader which is a JDK 1.2 feature. If we are running under JDK 1.1 or anything else goes wrong the method returnsnull. -
loadClass
Deprecated.- Throws:
ClassNotFoundException
-
getClassLoaderOfObject
Deprecated.Get the class loader of the object passed as argument. Return the system class loader if appropriate.- Parameters:
o-- Returns:
-
getClassLoaderAsPrivileged
Deprecated.Returns the class loader of clazz in an access privileged section.- Parameters:
clazz-- Returns:
-
getClassLoaderOfClass
Deprecated.Return the class loader which loaded the class passed as argument. Return the system class loader if appropriate.- Parameters:
clazz-- Returns:
-
loadClass
Deprecated.If running under JDK 1.2 load the specified class using theThreadcontextClassLoaderif that fails try Class.forname. Under JDK 1.1 only Class.forName is used.- Throws:
ClassNotFoundException
-