Class DynamicClassLoader

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class DynamicClassLoader
    extends URLClassLoader
    This is a basic URL classloader for loading new resources dynamically. It allows public access to the addURL() method. It also adds a convenience method to update the current thread classloader
    • Method Detail

      • updateLoader

        public static void updateLoader​(URL[] urls)
        Parameters:
        urls - - list of URLs to add to the thread's classloader