public class ClassLoaderUtils extends Object
ClassLoader.| Constructor and Description |
|---|
ClassLoaderUtils() |
| Modifier and Type | Method and Description |
|---|---|
static URL[] |
getSystemURLs()
Gets the system class loader's URLs, if any.
|
static URL[] |
getThreadURLs()
Gets the current thread's context class loader's URLs, if any.
|
static String |
toString(ClassLoader classLoader)
Converts the given class loader to a String calling
toString(URLClassLoader). |
static String |
toString(URLClassLoader classLoader)
Converts the given URLClassLoader to a String in the format
"URLClassLoader.toString() + [URL1, URL2, ...]". |
public ClassLoaderUtils()
public static URL[] getSystemURLs()
public static URL[] getThreadURLs()
public static String toString(ClassLoader classLoader)
toString(URLClassLoader).classLoader - to URLClassLoader to convert.public static String toString(URLClassLoader classLoader)
"URLClassLoader.toString() + [URL1, URL2, ...]".classLoader - to URLClassLoader to convert.Copyright © 2001–2023 The Apache Software Foundation. All rights reserved.