Class ClassLoaderUtils

    • Method Detail

      • getSystemURLs

        public static URL[] getSystemURLs()
        Gets the system class loader's URLs, if any.
        Returns:
        the system class loader's URLs, if any.
        Since:
        3.13.0
      • getThreadURLs

        public static URL[] getThreadURLs()
        Gets the current thread's context class loader's URLs, if any.
        Returns:
        the current thread's context class loader's URLs, if any.
        Since:
        3.13.0
      • toString

        public static String toString​(URLClassLoader classLoader)
        Converts the given URLClassLoader to a String in the format "URLClassLoader.toString() + [URL1, URL2, ...]".
        Parameters:
        classLoader - to URLClassLoader to convert.
        Returns:
        the formatted string.