| Modifier and Type | Field and Description |
|---|---|
| private static boolean | |
| public static final String | |
| private static boolean | |
| pack-priv static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static ClassLoader | getClassLoaderAsPrivileged(final Class<?> clazz)
Returns the class loader of clazz in an access privileged section. |
| public static ClassLoader | getClassLoaderOfClass(final Class<?> clazz)
Return the class loader which loaded the class passed as argument. |
| public static ClassLoader | |
| public static URL | getResource(String
the resource name to look for resource, ClassLoader the classloader used for the search classLoader)Search for a resource using the classloader passed as parameter. |
| public static URL | getResourceBySelfClassLoader(String resource)
Attempt to find a resource by using the classloader that loaded this class, namely Loader.class. |
| public static Set | getResources(String resource, ClassLoader classLoader)
Compute the number of occurrences a resource can be found by a class loader. |
| public static ClassLoader | |
| public static Class | |
| public static Class | |
| public static ClassLoader | Returns: the system class loader if thecl argument is null, return cl otherwise.a class loader, may be null cl)This method is used to sanitize the |
| HAS_GET_CLASS_LOADER_PERMISSION | back to summary |
|---|---|
| private static boolean HAS_GET_CLASS_LOADER_PERMISSION | |
| IGNORE_TCL_PROPERTY_NAME | back to summary |
|---|---|
| public static final String IGNORE_TCL_PROPERTY_NAME | |
| ignoreTCL | back to summary |
|---|---|
| private static boolean ignoreTCL | |
| TSTR | back to summary |
|---|---|
| pack-priv static final String TSTR | |
| Loader | back to summary |
|---|---|
| public Loader() | |
| getClassLoaderAsPrivileged | back to summary |
|---|---|
| public static ClassLoader getClassLoaderAsPrivileged(final Class<?> clazz) Returns the class loader of clazz in an access privileged section. | |
| getClassLoaderOfClass | back to summary |
|---|---|
| public static ClassLoader getClassLoaderOfClass(final Class<?> clazz) Return the class loader which loaded the class passed as argument. Return the system class loader if the class loader of 'clazz' argument is null. | |
| getClassLoaderOfObject | back to summary |
|---|---|
| public static ClassLoader getClassLoaderOfObject(Object o) Get the class loader of the object passed as argument. Return the system class loader if appropriate. | |
| getResource | back to summary |
|---|---|
| public static URL getResource(String resource, ClassLoader classLoader) Search for a resource using the classloader passed as parameter.
| |
| getResourceBySelfClassLoader | back to summary |
|---|---|
| public static URL getResourceBySelfClassLoader(String resource) Attempt to find a resource by using the classloader that loaded this class, namely Loader.class. | |
| getResources | back to summary |
|---|---|
| public static Set Compute the number of occurrences a resource can be found by a class loader. | |
| getTCL | back to summary |
|---|---|
| public static ClassLoader getTCL() 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 returns | |
| loadClass | back to summary |
|---|---|
| public static Class | |
| loadClass | back to summary |
|---|---|
| public static Class If running under JDK 1.2 load the specified class using the
| |
| systemClassloaderIfNull | back to summary |
|---|---|
| public static ClassLoader systemClassloaderIfNull(ClassLoader cl) This method is used to sanitize the
| |