Class ConsoleClassLoader


  • public class ConsoleClassLoader
    extends ClassLoader

    This ClassLoader makes it possible to access plugin resources by finding the appropriate plugin module's ClassLoader and loading resources from it.

    Author:
    Ken Paulsen ([email protected])
    • Constructor Detail

      • ConsoleClassLoader

        protected ConsoleClassLoader()

        This constructor should not normally be used. You should use the one that allows you to provide the parent ClassLoader.

      • ConsoleClassLoader

        public ConsoleClassLoader​(ClassLoader parent)

        This constructor creates an instance of this ClassLoader and will use the given ClassLoader as its parent ClassLoader.

        Parameters:
        parent - The parent ClassLoader
    • Method Detail

      • findModuleClassLoader

        public static ClassLoader findModuleClassLoader​(String moduleName)

        This method find the ClassLoader associated with the named module.